diff --git a/stage0/src/runtime/uv/tcp.cpp b/stage0/src/runtime/uv/tcp.cpp index 459375da45..30f76609cb 100644 --- a/stage0/src/runtime/uv/tcp.cpp +++ b/stage0/src/runtime/uv/tcp.cpp @@ -227,7 +227,7 @@ extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_recv(b_obj_arg socket, uint64_t // Locking early prevents potential parallelism issues setting the byte_array. event_loop_lock(&global_ev); - if (tcp_socket->m_byte_array != nullptr) { + if (tcp_socket->m_promise_read != nullptr) { event_loop_unlock(&global_ev); return lean_io_result_mk_error(lean_decode_uv_error(UV_EALREADY, nullptr)); } @@ -295,6 +295,102 @@ extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_recv(b_obj_arg socket, uint64_t return lean_io_result_mk_ok(promise); } +/* Std.Internal.UV.TCP.Socket.waitReadable (socket : @& Socket) : IO (IO.Promise (Except IO.Error Bool)) */ +extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_wait_readable(b_obj_arg socket, obj_arg /* w */) { + lean_uv_tcp_socket_object* tcp_socket = lean_to_uv_tcp_socket(socket); + + event_loop_lock(&global_ev); + + if (tcp_socket->m_promise_read != nullptr) { + event_loop_unlock(&global_ev); + return lean_io_result_mk_error(lean_decode_uv_error(UV_EALREADY, nullptr)); + } + + lean_object* promise = lean_promise_new(); + mark_mt(promise); + + tcp_socket->m_promise_read = promise; + + // The event loop owns the socket. + lean_inc(socket); + lean_inc(promise); + + int result = uv_read_start((uv_stream_t*)tcp_socket->m_uv_tcp, [](uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf) { + // According to libuv documentation if we do this we do not lose data and a UV_ENOBUFS will + // be triggered in the read cb. + buf->base = NULL; + buf->len = 0; + }, [](uv_stream_t* stream, ssize_t nread, const uv_buf_t* buf) { + uv_read_stop(stream); + + lean_uv_tcp_socket_object* tcp_socket = lean_to_uv_tcp_socket((lean_object*)stream->data); + lean_object* promise = tcp_socket->m_promise_read; + + tcp_socket->m_promise_read = nullptr; + + if (nread == UV_ENOBUFS) { + lean_promise_resolve(mk_except_ok(lean_box(1)), promise); + } else if (nread == UV_EOF) { + lean_promise_resolve(mk_except_ok(lean_box(0)), promise); + } else if (nread < 0) { + lean_promise_resolve(mk_except_err(lean_decode_uv_error(nread, nullptr)), promise); + } else { + // This branch should be dead, we cannot receive a value >= 0 according to docs. + lean_always_assert(false); + } + + lean_dec(promise); + + // The event loop does not own the object anymore. + lean_dec((lean_object*)stream->data); + }); + + if (result < 0) { + tcp_socket->m_promise_read = nullptr; + + event_loop_unlock(&global_ev); + + lean_dec(promise); // The structure does not own it. + lean_dec(promise); // We are not going to return it. + lean_dec(socket); + + return lean_io_result_mk_error(lean_decode_uv_error(result, nullptr)); + } + + event_loop_unlock(&global_ev); + + return lean_io_result_mk_ok(promise); +} + +/* Std.Internal.UV.TCP.Socket.cancelRecv (socket : @& Socket) : IO Unit */ +extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_cancel_recv(b_obj_arg socket, obj_arg /* w */) { + lean_uv_tcp_socket_object* tcp_socket = lean_to_uv_tcp_socket(socket); + + event_loop_lock(&global_ev); + + if (tcp_socket->m_promise_read == nullptr) { + event_loop_unlock(&global_ev); + return lean_io_result_mk_ok(lean_box(0)); + } + + uv_read_stop((uv_stream_t*)tcp_socket->m_uv_tcp); + + lean_object* promise = tcp_socket->m_promise_read; + lean_dec(promise); + tcp_socket->m_promise_read = nullptr; + + lean_object* byte_array = tcp_socket->m_byte_array; + if (byte_array != nullptr) { + lean_dec(byte_array); + tcp_socket->m_byte_array = nullptr; + } + + lean_dec((lean_object*)tcp_socket); + + event_loop_unlock(&global_ev); + return lean_io_result_mk_ok(lean_box(0)); +} + /* Std.Internal.UV.TCP.Socket.bind (socket : @& Socket) (addr : @& SocketAddress) : IO Unit */ extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_bind(b_obj_arg socket, b_obj_arg addr, obj_arg /* w */) { lean_uv_tcp_socket_object* tcp_socket = lean_to_uv_tcp_socket(socket); diff --git a/stage0/src/runtime/uv/tcp.h b/stage0/src/runtime/uv/tcp.h index 1fe176d62d..cc2bcee2df 100644 --- a/stage0/src/runtime/uv/tcp.h +++ b/stage0/src/runtime/uv/tcp.h @@ -42,6 +42,8 @@ extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_new(obj_arg /* w */); extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_connect(b_obj_arg socket, b_obj_arg addr, obj_arg /* w */); extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_send(b_obj_arg socket, obj_arg data, obj_arg /* w */); extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_recv(b_obj_arg socket, uint64_t buffer_size, obj_arg /* w */); +extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_wait_readable(b_obj_arg socket, obj_arg /* w */); +extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_cancel_recv(b_obj_arg socket, obj_arg /* w */); extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_bind(b_obj_arg socket, b_obj_arg addr, obj_arg /* w */); extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_listen(b_obj_arg socket, int32_t backlog, obj_arg /* w */); extern "C" LEAN_EXPORT lean_obj_res lean_uv_tcp_accept(b_obj_arg socket, obj_arg /* w */); diff --git a/stage0/stdlib/Init/Data/BitVec/Basic.c b/stage0/stdlib/Init/Data/BitVec/Basic.c index 3a76b96952..2875478a6f 100644 --- a/stage0/stdlib/Init/Data/BitVec/Basic.c +++ b/stage0/stdlib/Init/Data/BitVec/Basic.c @@ -208,7 +208,9 @@ LEAN_EXPORT uint8_t l_BitVec_instGetElemNatBoolLt___rarg(lean_object*, lean_obje static lean_object* l_BitVec_term_____x23_______closed__4; LEAN_EXPORT lean_object* l_BitVec_sshiftRight(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BitVec_unexpandBitVecOfNatLt___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_BitVec_sdivOverflow(lean_object*, lean_object*, lean_object*); static lean_object* l_BitVec_term_____x23_______closed__17; +LEAN_EXPORT lean_object* l_BitVec_sdivOverflow___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_BitVec_term_____x23_______closed__18; LEAN_EXPORT lean_object* l_BitVec_instHShiftRight___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_BitVec_slt(lean_object*, lean_object*, lean_object*); @@ -329,6 +331,7 @@ LEAN_EXPORT lean_object* l_BitVec_term_____x23____; LEAN_EXPORT lean_object* l_BitVec_cast___rarg(lean_object*); LEAN_EXPORT lean_object* l_BitVec_instMul(lean_object*); static lean_object* l_BitVec_term_____x23_______closed__8; +lean_object* lean_int_ediv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BitVec_instMod(lean_object*); LEAN_EXPORT lean_object* l_BitVec_instHashable(lean_object*); lean_object* lean_int_neg(lean_object*); @@ -3861,6 +3864,51 @@ x_4 = lean_box(x_3); return x_4; } } +LEAN_EXPORT uint8_t l_BitVec_sdivOverflow(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_4 = lean_unsigned_to_nat(1u); +x_5 = lean_nat_sub(x_1, x_4); +x_6 = l_BitVec_saddOverflow___closed__1; +x_7 = l_Int_pow(x_6, x_5); +lean_dec(x_5); +x_8 = l_BitVec_toInt(x_1, x_2); +x_9 = l_BitVec_toInt(x_1, x_3); +x_10 = lean_int_ediv(x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +x_11 = lean_int_dec_le(x_7, x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_int_neg(x_7); +lean_dec(x_7); +x_13 = lean_int_dec_lt(x_10, x_12); +lean_dec(x_12); +lean_dec(x_10); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_10); +lean_dec(x_7); +x_14 = 1; +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_BitVec_sdivOverflow___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l_BitVec_sdivOverflow(x_1, x_2, x_3); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} LEAN_EXPORT lean_object* l_BitVec_reverse(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/AddDecl.c b/stage0/stdlib/Lean/AddDecl.c index 7b705805b9..0b136a5384 100644 --- a/stage0/stdlib/Lean/AddDecl.c +++ b/stage0/stdlib/Lean/AddDecl.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.AddDecl -// Imports: Lean.CoreM Lean.Namespace +// Imports: Lean.CoreM Lean.Namespace Lean.Util.CollectAxioms #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,12 +13,15 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_setEnv___at_Lean_addDecl_addSynchronously___spec__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__2; +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__1; +LEAN_EXPORT lean_object* l_Lean_addDecl___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 uint8_t l_Lean_addDecl___lambda__2(lean_object*); -static lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4(lean_object*, lean_object*); +lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_addDecl_addSynchronously___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -30,24 +33,35 @@ LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_addDecl_addAsA static lean_object* l_Lean_addDecl_doAdd___lambda__1___closed__2; static lean_object* l_Lean_addDecl_doAdd___lambda__3___closed__1; static lean_object* l_Lean_setEnv___at_Lean_addDecl_addSynchronously___spec__2___closed__2; +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3; lean_object* l_Lean_log___at_Lean_Core_wrapAsyncAsSnapshot___spec__13(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_withTraceNode___at_Lean_Core_wrapAsyncAsSnapshot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Environment_header(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___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_logWarning___at_Lean_addDecl_doAdd___spec__2___closed__1; uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_Environment_addDeclAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* lean_add_decl(lean_object*, size_t, lean_object*, lean_object*); +static lean_object* l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__2; lean_object* l_Lean_Core_instInhabitedCoreM___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_addAsAxiom___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDecl_doAdd___closed__3; lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__5; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__1; +lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___closed__1; +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__7; lean_object* l_Lean_compileDecl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__5___boxed(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_addDecl___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___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_addDecl_addAsAxiom___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__3; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__8; @@ -65,8 +79,12 @@ lean_object* l_Lean_Level_ofNat(lean_object*); lean_object* l_Lean_Environment_registerNamespace(lean_object*, lean_object*); static lean_object* l_Lean_setEnv___at_Lean_addDecl_addSynchronously___spec__2___closed__1; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__10; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_doAdd___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_initFn____x40_Lean_AddDecl___hyg_242____closed__10; +LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_doAdd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_addDecl_addAsAxiom___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___boxed(lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___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_IO_CancelToken_new(lean_object*); @@ -74,9 +92,12 @@ extern lean_object* l_Lean_debug_skipKernelTC; LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDecl_doAdd___lambda__3___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_doAdd___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__1; static lean_object* l_Lean_addDecl_doAdd___lambda__1___closed__4; static lean_object* l_Lean_addDecl___closed__1; +static lean_object* l_Lean_getOriginalConstKind_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_addDecl_addAsAxiom___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__2___boxed(lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); @@ -87,56 +108,74 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_profileitM___at_Lean_traceBlock___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__11; 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*); lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_doAdd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern uint8_t l_Lean_instInhabitedConstantKind; +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__6; LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_addDecl_addSynchronously___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___boxed(lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; lean_object* l_Lean_Declaration_getNames(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__11; LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_addDecl_addAsAxiom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); uint8_t l_Lean_ConstantKind_ofConstantInfo(lean_object*); +lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); extern lean_object* l_Lean_warningAsError; 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_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg(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_logWarning___at_Lean_addDecl_doAdd___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__4; +static lean_object* l_Lean_addDecl___lambda__6___closed__1; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__2; +lean_object* l_Lean_registerAxiomsForDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); lean_object* l_Lean_Declaration_getTopLevelNames(lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Environment_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_AddDecl_0__Lean_isNamespaceName(lean_object*); -static lean_object* l_Lean_addDecl___lambda__3___closed__5; -LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_wrapAsyncAsSnapshot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__9; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__5; static lean_object* l_Lean_addDecl_addAsAxiom___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_wasOriginallyTheorem___boxed(lean_object*, lean_object*); static lean_object* l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getOriginalConstKind_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__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_initFn____x40_Lean_AddDecl___hyg_242____closed__9; lean_object* l_Lean_setEnv___at_Lean_compileDecls_doCompile___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_registerNamePrefixes(lean_object*, lean_object*); static lean_object* l_Lean_addDecl_doAdd___closed__2; +LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_addDecl_addAsAxiom___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___boxed(lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType(lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__7; static lean_object* l_Lean_addDecl_doAdd___lambda__3___closed__3; lean_object* l_Lean_Kernel_Exception_toMessageData(lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__1; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___boxed(lean_object*); static lean_object* l_Lean_addDecl___lambda__3___closed__3; static lean_object* l_Lean_addDecl_doAdd___closed__1; +LEAN_EXPORT uint8_t l___private_Lean_AddDecl_0__Lean_isSimpleRflProof(lean_object*); +static lean_object* l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__1; static lean_object* l_Lean_addDecl___lambda__3___closed__4; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_addDecl_doAdd___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_doAdd___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDecl_doAdd___lambda__3___closed__5; +lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_addDecl_addSynchronously___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___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* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at_Lean_addDecl___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__2; @@ -144,7 +183,9 @@ lean_object* lean_add_decl_without_checking(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_addDecl_addSynchronously(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_addDecl_addAsAxiom___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Environment_findAsync_x3f(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Kernel_Environment_addDecl___closed__1; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_addDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); @@ -154,20 +195,27 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_addDecl_addAsAxiom___spec__ lean_object* l_List_mapTR_loop___at_Lean_compileDecls_doCompile___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Core_logSnapshotTask(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDecl___lambda__3___closed__1; +static lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__8; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__14; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_doAdd___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_AddDecl_0__Lean_privateConstKindsExt; static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__13; LEAN_EXPORT lean_object* l_Lean_addAndCompile(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); extern lean_object* l_Lean_interruptExceptionId; LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_Environment_addDeclAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_registerNamePrefixes_go(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_wasOriginallyTheorem(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_doAdd___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl_addAsAxiom___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDecl_doAdd___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__4; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242_(lean_object*); uint8_t l_Lean_MessageLog_hasErrors(lean_object*); static lean_object* _init_l_Lean_Kernel_Environment_addDecl___closed__1() { _start: @@ -365,6 +413,399 @@ return x_1; } } } +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_ctor_get(x_2, 3); +x_7 = l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2(x_1, x_3); +lean_inc(x_5); +lean_inc(x_4); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_5); +x_9 = lean_array_push(x_7, x_8); +x_1 = x_9; +x_2 = x_6; +goto _start; +} +} +} +static lean_object* _init_l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___closed__1; +x_3 = l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__2() { +_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_AddDecl___hyg_242____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_AddDecl___hyg_242____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__2; +x_2 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("AddDecl", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__4; +x_2 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__6; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__7; +x_2 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("privateConstKindsExt", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__8; +x_2 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_AddDecl___hyg_242_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__10; +x_3 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__11; +x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_getOriginalConstKind_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_AddDecl_0__Lean_privateConstKindsExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_getOriginalConstKind_x3f(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; +x_3 = l_Lean_instInhabitedConstantKind; +x_4 = l_Lean_getOriginalConstKind_x3f___closed__1; +x_5 = 0; +x_6 = lean_box(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_7 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_6, x_4, x_1, x_2, x_5); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = l_Lean_Environment_setExporting(x_1, x_5); +x_9 = l_Lean_Environment_findAsync_x3f(x_8, x_2, x_5); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_box(0); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*3); +lean_dec(x_12); +x_14 = lean_box(x_13); +lean_ctor_set(x_9, 0, x_14); +return x_9; +} +else +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +lean_dec(x_9); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +lean_dec(x_15); +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; +} +} +} +else +{ +uint8_t x_19; +lean_dec(x_2); +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; +x_20 = lean_ctor_get(x_7, 0); +lean_inc(x_20); +lean_dec(x_7); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +return x_21; +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_wasOriginallyTheorem(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_getOriginalConstKind_x3f(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +if (lean_obj_tag(x_5) == 1) +{ +uint8_t x_6; +x_6 = 1; +return x_6; +} +else +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_wasOriginallyTheorem___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_wasOriginallyTheorem(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("rfl", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l___private_Lean_AddDecl_0__Lean_isSimpleRflProof(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 6) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 2); +x_1 = x_2; +goto _start; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__2; +x_5 = lean_unsigned_to_nat(2u); +x_6 = l_Lean_Expr_isAppOfArity(x_1, x_4, x_5); +return x_6; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_AddDecl_0__Lean_isSimpleRflProof(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("WellFounded", 11, 11); +return x_1; +} +} +static lean_object* _init_l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 2); +x_1 = x_2; +goto _start; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__2; +x_5 = lean_unsigned_to_nat(2u); +x_6 = l_Lean_Expr_isAppOfArity(x_1, x_4, x_5); +return x_6; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_addDecl_addAsAxiom___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -1296,7 +1737,40 @@ lean_dec(x_3); return x_5; } } -static lean_object* _init_l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___closed__1() { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_doAdd___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: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_10; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_9); +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_dec(x_5); +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); +lean_dec(x_4); +x_13 = l_Lean_registerAxiomsForDecl(x_11, x_7, x_8, x_9); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_box(0); +x_4 = x_12; +x_5 = x_15; +x_6 = lean_box(0); +x_9 = x_14; +goto _start; +} +} +} +static lean_object* _init_l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2___closed__1() { _start: { lean_object* x_1; @@ -1304,13 +1778,13 @@ x_1 = l_Lean_warningAsError; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__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; uint8_t x_7; x_5 = lean_ctor_get(x_2, 2); lean_inc(x_5); -x_6 = l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___closed__1; +x_6 = l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2___closed__1; x_7 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_5, x_6); lean_dec(x_5); if (x_7 == 0) @@ -1388,209 +1862,160 @@ return x_14; LEAN_EXPORT lean_object* l_Lean_addDecl_doAdd___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_11; lean_object* x_12; lean_object* x_13; -x_6 = lean_st_ref_get(x_4, 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_ctor_get(x_7, 0); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_3, 2); -lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 11); -lean_inc(x_11); -lean_inc(x_1); -x_12 = l___private_Lean_AddDecl_0__Lean_Environment_addDeclAux(x_9, x_10, x_1, x_11); -lean_dec(x_11); -lean_dec(x_10); -lean_inc(x_3); -x_13 = l_Lean_ofExceptKernelException___at_Lean_addDecl_addAsAxiom___spec__1(x_12, x_3, x_4, x_8); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(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_setEnv___at_Lean_compileDecls_doCompile___spec__12(x_14, x_3, x_4, x_15); -lean_dec(x_3); -return x_16; -} -else -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_13); -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_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_free_object(x_13); -x_22 = l_Lean_addDecl_addAsAxiom(x_1, x_3, x_4, x_19); -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; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 0, x_18); -return x_22; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 1); +lean_object* x_6; lean_object* x_7; 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_st_ref_get(x_4, x_5); +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_inc(x_25); -lean_dec(x_22); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else +lean_dec(x_23); +x_26 = lean_ctor_get(x_3, 2); +lean_inc(x_26); +x_27 = lean_ctor_get(x_3, 11); +lean_inc(x_27); +lean_inc(x_1); +x_28 = l___private_Lean_AddDecl_0__Lean_Environment_addDeclAux(x_25, x_26, x_1, x_27); +lean_dec(x_27); +lean_dec(x_26); +lean_inc(x_3); +x_29 = l_Lean_ofExceptKernelException___at_Lean_addDecl_addAsAxiom___spec__1(x_28, x_3, x_4, x_24); +if (lean_obj_tag(x_29) == 0) { -uint8_t x_27; -lean_dec(x_18); -x_27 = !lean_is_exclusive(x_22); -if (x_27 == 0) -{ -return x_22; -} -else -{ -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_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_dec(x_3); -lean_dec(x_1); -return x_13; -} -} -else -{ -lean_dec(x_3); -lean_dec(x_1); -return x_13; -} -} -else -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_13, 0); -x_32 = lean_ctor_get(x_13, 1); -lean_inc(x_32); +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; +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_13); -x_33 = l_Lean_Exception_isInterrupt(x_31); -if (x_33 == 0) +lean_dec(x_29); +x_32 = l_Lean_setEnv___at_Lean_compileDecls_doCompile___spec__12(x_30, x_3, x_4, x_31); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_box(0); +x_35 = l_Lean_Declaration_getTopLevelNames(x_1); +x_36 = lean_box(0); +lean_inc(x_35); +x_37 = l_List_forIn_x27_loop___at_Lean_addDecl_doAdd___spec__1(x_34, x_35, x_35, x_35, x_36, lean_box(0), x_3, x_4, x_33); +lean_dec(x_3); +lean_dec(x_35); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) { -uint8_t x_34; -x_34 = l_Lean_Exception_isRuntime(x_31); -if (x_34 == 0) -{ -lean_object* x_35; -x_35 = l_Lean_addDecl_addAsAxiom(x_1, x_3, x_4, x_32); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 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(1, 2, 0); -} else { - x_38 = x_37; - lean_ctor_set_tag(x_38, 1); -} -lean_ctor_set(x_38, 0, x_31); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_36); +return x_37; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_31); -x_39 = lean_ctor_get(x_35, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_35, 1); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); lean_inc(x_40); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_41 = x_35; -} else { - lean_dec_ref(x_35); - x_41 = lean_box(0); -} -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(1, 2, 0); -} else { - x_42 = x_41; -} -lean_ctor_set(x_42, 0, x_39); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_36); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } else { -lean_object* x_43; -lean_dec(x_3); -lean_dec(x_1); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_31); -lean_ctor_set(x_43, 1, x_32); -return x_43; +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_29, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_29, 1); +lean_inc(x_43); +lean_dec(x_29); +x_6 = x_42; +x_7 = x_43; +goto block_21; +} +block_21: +{ +uint8_t x_8; +x_8 = l_Lean_Exception_isInterrupt(x_6); +if (x_8 == 0) +{ +uint8_t x_9; +x_9 = l_Lean_Exception_isRuntime(x_6); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = l_Lean_addDecl_addAsAxiom(x_1, x_3, x_4, x_7); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_6); +return x_10; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_6); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } else { -lean_object* x_44; +uint8_t x_15; +lean_dec(x_6); +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; +} +} +} +else +{ +lean_object* x_19; lean_dec(x_3); lean_dec(x_1); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_31); -lean_ctor_set(x_44, 1, x_32); -return x_44; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_6); +lean_ctor_set(x_19, 1, x_7); +return x_19; } } +else +{ +lean_object* x_20; +lean_dec(x_3); +lean_dec(x_1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_7); +return x_20; +} } } } @@ -1673,7 +2098,7 @@ else lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_14 = l_Lean_addDecl_doAdd___lambda__3___closed__5; lean_inc(x_2); -x_15 = l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1(x_14, x_2, x_3, x_7); +x_15 = l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2(x_14, x_2, x_3, x_7); x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -1747,11 +2172,24 @@ lean_dec(x_5); return x_15; } } -LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_addDecl_doAdd___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_List_forIn_x27_loop___at_Lean_addDecl_doAdd___spec__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_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__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_logWarning___at_Lean_addDecl_doAdd___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -1958,7 +2396,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_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__1; x_2 = l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__2; -x_3 = lean_unsigned_to_nat(90u); +x_3 = lean_unsigned_to_nat(135u); x_4 = lean_unsigned_to_nat(49u); x_5 = l_List_forIn_x27_loop___at_Lean_addDecl_addSynchronously___spec__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -3146,29 +3584,21 @@ static lean_object* _init_l_Lean_addDecl___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean", 4, 4); +x_1 = lean_mk_string_unchecked("addDecl", 7, 7); return x_1; } } static lean_object* _init_l_Lean_addDecl___lambda__3___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("addDecl", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_addDecl___lambda__3___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_addDecl___lambda__3___closed__1; -x_2 = l_Lean_addDecl___lambda__3___closed__2; +x_1 = l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3; +x_2 = l_Lean_addDecl___lambda__3___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_addDecl___lambda__3___closed__4() { +static lean_object* _init_l_Lean_addDecl___lambda__3___closed__3() { _start: { lean_object* x_1; @@ -3176,759 +3606,1000 @@ x_1 = lean_alloc_closure((void*)(l_Lean_addDecl___lambda__2___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_addDecl___lambda__3___closed__5() { +static lean_object* _init_l_Lean_addDecl___lambda__3___closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_addDecl___lambda__3___closed__3; +x_1 = l_Lean_addDecl___lambda__3___closed__2; x_2 = 1; -x_3 = l_Lean_addDecl___lambda__3___closed__4; +x_3 = l_Lean_addDecl___lambda__3___closed__3; x_4 = l_Lean_Name_toString(x_1, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__3(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_addDecl___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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_st_ref_get(x_4, x_5); -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; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; -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_object* x_12; 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_st_ref_get(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 = lean_ctor_get(x_3, 5); -lean_inc(x_15); -x_16 = 0; -x_17 = 1; -x_18 = lean_unbox(x_9); -x_19 = lean_unbox(x_9); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_15 = x_12; +} else { + lean_dec_ref(x_12); + x_15 = lean_box(0); +} +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +lean_dec(x_13); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_79; uint8_t x_80; uint8_t x_81; lean_object* x_82; +x_79 = lean_ctor_get(x_9, 5); +lean_inc(x_79); +x_80 = 0; +x_81 = 1; +lean_inc(x_16); +x_82 = l_Lean_Environment_addConstAsync(x_16, x_6, x_7, x_7, x_80, x_81, x_14); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; +lean_dec(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); +lean_dec(x_82); +x_17 = x_83; +x_18 = x_84; +goto block_78; +} +else +{ +uint8_t x_85; +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_9); -lean_inc(x_14); -x_20 = l_Lean_Environment_addConstAsync(x_14, x_7, x_18, x_19, x_16, x_17, x_13); -if (lean_obj_tag(x_20) == 0) +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_85 = !lean_is_exclusive(x_82); +if (x_85 == 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_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_86 = lean_ctor_get(x_82, 0); +x_87 = lean_io_error_to_string(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); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_79); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set(x_82, 0, x_90); +return x_82; +} +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; +x_91 = lean_ctor_get(x_82, 0); +x_92 = lean_ctor_get(x_82, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_82); +x_93 = lean_io_error_to_string(x_91); +x_94 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_94, 0, x_93); +x_95 = l_Lean_MessageData_ofFormat(x_94); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_79); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_92); +return x_97; +} +} +} +else +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_9, 5); +lean_inc(x_98); +x_99 = !lean_is_exclusive(x_5); +if (x_99 == 0) +{ +lean_object* x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; lean_object* x_104; +x_100 = lean_ctor_get(x_5, 0); +x_101 = 0; +x_102 = 1; +x_103 = lean_unbox(x_100); +lean_dec(x_100); +lean_inc(x_16); +x_104 = l_Lean_Environment_addConstAsync(x_16, x_6, x_7, x_103, x_101, x_102, x_14); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; +lean_free_object(x_5); +lean_dec(x_98); +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_17 = x_105; +x_18 = x_106; +goto block_78; +} +else +{ +uint8_t x_107; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_104); +if (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_104, 0); +x_109 = lean_io_error_to_string(x_108); +lean_ctor_set_tag(x_5, 3); +lean_ctor_set(x_5, 0, x_109); +x_110 = l_Lean_MessageData_ofFormat(x_5); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_98); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_104, 0, x_111); +return x_104; +} +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; +x_112 = lean_ctor_get(x_104, 0); +x_113 = lean_ctor_get(x_104, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_104); +x_114 = lean_io_error_to_string(x_112); +lean_ctor_set_tag(x_5, 3); +lean_ctor_set(x_5, 0, x_114); +x_115 = l_Lean_MessageData_ofFormat(x_5); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_98); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +return x_117; +} +} +} +else +{ +lean_object* x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; lean_object* x_122; +x_118 = lean_ctor_get(x_5, 0); +lean_inc(x_118); +lean_dec(x_5); +x_119 = 0; +x_120 = 1; +x_121 = lean_unbox(x_118); +lean_dec(x_118); +lean_inc(x_16); +x_122 = l_Lean_Environment_addConstAsync(x_16, x_6, x_7, x_121, x_119, x_120, x_14); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; +lean_dec(x_98); +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_17 = x_123; +x_18 = x_124; +goto block_78; +} +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_dec(x_16); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_125 = lean_ctor_get(x_122, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_122, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_127 = x_122; +} else { + lean_dec_ref(x_122); + x_127 = lean_box(0); +} +x_128 = lean_io_error_to_string(x_125); +x_129 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_129, 0, x_128); +x_130 = l_Lean_MessageData_ofFormat(x_129); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_98); +lean_ctor_set(x_131, 1, x_130); +if (lean_is_scalar(x_127)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_127; +} +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_126); +return x_132; +} +} +} +block_78: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_1); +x_21 = lean_ctor_get(x_9, 5); +lean_inc(x_21); +lean_inc(x_19); +lean_inc(x_17); +x_22 = l_Lean_Environment_AddConstAsyncResult_commitConst(x_17, x_19, x_20, x_2, x_18); +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; lean_object* x_37; uint8_t x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_15); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_ctor_get(x_17, 0); +lean_inc(x_24); +x_25 = l_Lean_setEnv___at_Lean_compileDecls_doCompile___spec__12(x_24, x_9, x_10, x_23); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_IO_CancelToken_new(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_alloc_closure((void*)(l_Lean_addDecl___lambda__1___boxed), 7, 3); +lean_closure_set(x_30, 0, x_19); +lean_closure_set(x_30, 1, x_3); +lean_closure_set(x_30, 2, x_17); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_28); +x_32 = l_Lean_addDecl___lambda__3___closed__4; +lean_inc(x_9); +lean_inc(x_31); +x_33 = l_Lean_Core_wrapAsyncAsSnapshot___rarg(x_30, x_31, x_32, x_9, x_10, x_29); +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_16, 2); +lean_inc(x_36); +lean_dec(x_16); +x_37 = l_Task_Priority_default; +x_38 = 0; +x_39 = lean_io_map_task(x_34, x_36, x_37, x_38, x_35); +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); +x_42 = lean_ctor_get(x_39, 1); +x_43 = l_Lean_Syntax_getTailPos_x3f(x_21, x_38); +lean_dec(x_21); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_free_object(x_39); +lean_inc(x_4); +x_44 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_44, 0, x_4); +lean_ctor_set(x_44, 1, x_4); +lean_ctor_set(x_44, 2, x_31); +lean_ctor_set(x_44, 3, x_41); +x_45 = l_Lean_Core_logSnapshotTask(x_44, x_9, x_10, x_42); +lean_dec(x_9); +return x_45; +} +else +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_43); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_43, 0); +lean_inc(x_47); +lean_ctor_set(x_39, 1, x_47); +lean_ctor_set(x_39, 0, x_47); +lean_ctor_set(x_43, 0, x_39); +x_48 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_48, 0, x_4); +lean_ctor_set(x_48, 1, x_43); +lean_ctor_set(x_48, 2, x_31); +lean_ctor_set(x_48, 3, x_41); +x_49 = l_Lean_Core_logSnapshotTask(x_48, x_9, x_10, x_42); +lean_dec(x_9); +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_43, 0); +lean_inc(x_50); +lean_dec(x_43); +lean_inc(x_50); +lean_ctor_set(x_39, 1, x_50); +lean_ctor_set(x_39, 0, x_50); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_39); +x_52 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_52, 0, x_4); +lean_ctor_set(x_52, 1, x_51); +lean_ctor_set(x_52, 2, x_31); +lean_ctor_set(x_52, 3, x_41); +x_53 = l_Lean_Core_logSnapshotTask(x_52, x_9, x_10, x_42); +lean_dec(x_9); +return x_53; +} +} +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_39, 0); +x_55 = lean_ctor_get(x_39, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_39); +x_56 = l_Lean_Syntax_getTailPos_x3f(x_21, x_38); +lean_dec(x_21); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_inc(x_4); +x_57 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_57, 0, x_4); +lean_ctor_set(x_57, 1, x_4); +lean_ctor_set(x_57, 2, x_31); +lean_ctor_set(x_57, 3, x_54); +x_58 = l_Lean_Core_logSnapshotTask(x_57, x_9, x_10, x_55); +lean_dec(x_9); +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; +x_59 = lean_ctor_get(x_56, 0); +lean_inc(x_59); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + x_60 = x_56; +} else { + lean_dec_ref(x_56); + x_60 = lean_box(0); +} +lean_inc(x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_59); +if (lean_is_scalar(x_60)) { + x_62 = lean_alloc_ctor(1, 1, 0); +} else { + x_62 = x_60; +} +lean_ctor_set(x_62, 0, x_61); +x_63 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_63, 0, x_4); +lean_ctor_set(x_63, 1, x_62); +lean_ctor_set(x_63, 2, x_31); +lean_ctor_set(x_63, 3, x_54); +x_64 = l_Lean_Core_logSnapshotTask(x_63, x_9, x_10, x_55); +lean_dec(x_9); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +x_65 = !lean_is_exclusive(x_22); +if (x_65 == 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_22, 0); +x_67 = lean_io_error_to_string(x_66); +x_68 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = l_Lean_MessageData_ofFormat(x_68); +if (lean_is_scalar(x_15)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_15; +} +lean_ctor_set(x_70, 0, x_21); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set(x_22, 0, x_70); +return x_22; +} +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; +x_71 = lean_ctor_get(x_22, 0); +x_72 = lean_ctor_get(x_22, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_22); +x_73 = lean_io_error_to_string(x_71); +x_74 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = l_Lean_MessageData_ofFormat(x_74); +if (lean_is_scalar(x_15)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_15; +} +lean_ctor_set(x_76, 0, x_21); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_72); +return x_77; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___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; +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +if (lean_obj_tag(x_5) == 0) +{ +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_dec(x_3); +x_11 = lean_ctor_get(x_6, 0); +lean_inc(x_11); +lean_dec(x_6); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_box(0); +x_15 = lean_unbox(x_13); +lean_dec(x_13); +x_16 = l_Lean_addDecl___lambda__3(x_12, x_4, x_1, x_2, x_5, x_11, x_15, x_14, 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; uint8_t x_23; +x_17 = lean_ctor_get(x_6, 0); +lean_inc(x_17); +lean_dec(x_6); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_dec(x_10); +x_20 = lean_st_ref_take(x_8, x_9); 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, 1); -lean_inc(x_23); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_8); -x_25 = lean_box(0); -lean_inc(x_23); -lean_inc(x_21); -x_26 = l_Lean_Environment_AddConstAsyncResult_commitConst(x_21, x_23, x_24, x_25, x_22); -if (lean_obj_tag(x_26) == 0) +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 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; uint8_t x_43; -lean_free_object(x_10); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_ctor_get(x_21, 0); -lean_inc(x_28); -x_29 = l_Lean_setEnv___at_Lean_compileDecls_doCompile___spec__12(x_28, x_3, x_4, x_27); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); +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; +x_24 = lean_ctor_get(x_21, 0); +x_25 = lean_ctor_get(x_21, 4); +lean_dec(x_25); +x_26 = l_Lean_getOriginalConstKind_x3f___closed__1; +lean_inc(x_19); +lean_inc(x_17); +x_27 = l_Lean_MapDeclarationExtension_insert___rarg(x_26, x_24, x_17, x_19); +lean_ctor_set(x_21, 4, x_3); +lean_ctor_set(x_21, 0, x_27); +x_28 = lean_st_ref_set(x_8, x_21, x_22); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_box(0); +x_31 = lean_unbox(x_19); +lean_dec(x_19); +x_32 = l_Lean_addDecl___lambda__3(x_18, x_4, x_1, x_2, x_5, x_17, x_31, x_30, x_7, x_8, 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; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 1); +x_35 = lean_ctor_get(x_21, 2); +x_36 = lean_ctor_get(x_21, 3); +x_37 = lean_ctor_get(x_21, 5); +x_38 = lean_ctor_get(x_21, 6); +x_39 = lean_ctor_get(x_21, 7); +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_21); +x_40 = l_Lean_getOriginalConstKind_x3f___closed__1; +lean_inc(x_19); +lean_inc(x_17); +x_41 = l_Lean_MapDeclarationExtension_insert___rarg(x_40, x_33, x_17, x_19); +x_42 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 4, x_3); +lean_ctor_set(x_42, 5, x_37); +lean_ctor_set(x_42, 6, x_38); +lean_ctor_set(x_42, 7, x_39); +x_43 = lean_st_ref_set(x_8, x_42, x_22); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_box(0); +x_46 = lean_unbox(x_19); +lean_dec(x_19); +x_47 = l_Lean_addDecl___lambda__3(x_18, x_4, x_1, x_2, x_5, x_17, x_46, x_45, x_7, x_8, x_44); +return x_47; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___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) { +_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; +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_dec(x_9); +x_11 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = 1; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_apply_6(x_2, x_3, x_4, x_15, x_6, x_7, x_8); +return x_16; +} +} +static lean_object* _init_l_Lean_addDecl___lambda__6___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 2; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___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) { +_start: +{ +lean_object* x_7; +x_7 = lean_box(0); +switch (lean_obj_tag(x_1)) { +case 0: +{ +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; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_11, 0, x_8); +x_12 = 2; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_addDecl___lambda__4(x_1, x_7, x_2, x_7, x_7, x_15, x_4, x_5, x_6); +lean_dec(x_5); +return x_16; +} +case 1: +{ +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; +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_17); +x_21 = 0; +x_22 = lean_box(x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_19); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_addDecl___lambda__4(x_1, x_7, x_2, x_7, x_7, x_24, x_4, x_5, x_6); +lean_dec(x_5); +return x_25; +} +case 2: +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_1, 0); +lean_inc(x_26); +lean_inc(x_1); +x_27 = lean_alloc_closure((void*)(l_Lean_addDecl___lambda__4___boxed), 9, 3); +lean_closure_set(x_27, 0, x_1); +lean_closure_set(x_27, 1, x_7); +lean_closure_set(x_27, 2, x_2); +x_28 = !lean_is_exclusive(x_1); +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; +x_29 = lean_ctor_get(x_1, 0); lean_dec(x_29); -x_31 = l_IO_CancelToken_new(x_30); -x_32 = lean_ctor_get(x_31, 0); +x_30 = lean_st_ref_get(x_5, 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); -x_33 = lean_ctor_get(x_31, 1); +lean_dec(x_30); +x_33 = lean_ctor_get(x_31, 0); lean_inc(x_33); lean_dec(x_31); -x_34 = lean_alloc_closure((void*)(l_Lean_addDecl___lambda__1___boxed), 7, 3); -lean_closure_set(x_34, 0, x_23); -lean_closure_set(x_34, 1, x_1); -lean_closure_set(x_34, 2, x_21); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_32); -x_36 = l_Lean_addDecl___lambda__3___closed__5; -lean_inc(x_3); -lean_inc(x_35); -x_37 = l_Lean_Core_wrapAsyncAsSnapshot___rarg(x_34, x_35, x_36, x_3, x_4, x_33); -x_38 = lean_ctor_get(x_37, 0); +x_34 = l_Lean_Environment_header(x_33); +lean_dec(x_33); +x_35 = lean_ctor_get_uint8(x_34, sizeof(void*)*5 + 4); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_free_object(x_1); +x_36 = lean_box(0); +x_37 = l_Lean_addDecl___lambda__5(x_26, x_27, x_7, x_7, x_36, x_4, x_5, x_32); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_26, 0); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +x_39 = lean_ctor_get(x_26, 1); lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_ctor_get(x_14, 2); -lean_inc(x_40); -lean_dec(x_14); -x_41 = l_Task_Priority_default; -x_42 = lean_io_map_task(x_38, x_40, x_41, x_16, x_39); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +x_40 = l___private_Lean_AddDecl_0__Lean_isSimpleRflProof(x_39); +lean_dec(x_39); +if (x_40 == 0) { -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); -x_46 = l_Lean_Syntax_getTailPos_x3f(x_15, x_16); -lean_dec(x_15); -if (lean_obj_tag(x_46) == 0) +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +x_42 = l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType(x_41); +lean_dec(x_41); +if (x_42 == 0) { -lean_object* x_47; lean_object* x_48; -lean_free_object(x_42); -x_47 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_47, 0, x_25); -lean_ctor_set(x_47, 1, x_25); -lean_ctor_set(x_47, 2, x_35); -lean_ctor_set(x_47, 3, x_44); -x_48 = l_Lean_Core_logSnapshotTask(x_47, x_3, x_4, x_45); -lean_dec(x_3); +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_43 = 0; +x_44 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_43); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 0, x_44); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_1); +x_46 = l_Lean_addDecl___lambda__6___closed__1; +x_47 = lean_box(0); +x_48 = l_Lean_addDecl___lambda__5(x_26, x_27, x_45, x_46, x_47, x_4, x_5, x_32); return x_48; } else { -uint8_t x_49; -x_49 = !lean_is_exclusive(x_46); -if (x_49 == 0) +lean_object* x_49; lean_object* x_50; +lean_dec(x_38); +lean_free_object(x_1); +x_49 = lean_box(0); +x_50 = l_Lean_addDecl___lambda__5(x_26, x_27, x_7, x_7, x_49, x_4, x_5, x_32); +return x_50; +} +} +else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_46, 0); -lean_inc(x_50); -lean_ctor_set(x_42, 1, x_50); -lean_ctor_set(x_42, 0, x_50); -lean_ctor_set(x_46, 0, x_42); -x_51 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_51, 0, x_25); -lean_ctor_set(x_51, 1, x_46); -lean_ctor_set(x_51, 2, x_35); -lean_ctor_set(x_51, 3, x_44); -x_52 = l_Lean_Core_logSnapshotTask(x_51, x_3, x_4, x_45); -lean_dec(x_3); +lean_object* x_51; lean_object* x_52; +lean_dec(x_38); +lean_free_object(x_1); +x_51 = lean_box(0); +x_52 = l_Lean_addDecl___lambda__5(x_26, x_27, x_7, x_7, x_51, x_4, x_5, x_32); 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_46, 0); -lean_inc(x_53); -lean_dec(x_46); -lean_inc(x_53); -lean_ctor_set(x_42, 1, x_53); -lean_ctor_set(x_42, 0, x_53); -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_42); -x_55 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_55, 0, x_25); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_35); -lean_ctor_set(x_55, 3, x_44); -x_56 = l_Lean_Core_logSnapshotTask(x_55, x_3, x_4, x_45); -lean_dec(x_3); -return x_56; -} } } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_42, 0); -x_58 = lean_ctor_get(x_42, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_42); -x_59 = l_Lean_Syntax_getTailPos_x3f(x_15, x_16); -lean_dec(x_15); -if (lean_obj_tag(x_59) == 0) +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_dec(x_1); +x_53 = lean_st_ref_get(x_5, x_6); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +x_57 = l_Lean_Environment_header(x_56); +lean_dec(x_56); +x_58 = lean_ctor_get_uint8(x_57, sizeof(void*)*5 + 4); +lean_dec(x_57); +if (x_58 == 0) { -lean_object* x_60; lean_object* x_61; -x_60 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_60, 0, x_25); -lean_ctor_set(x_60, 1, x_25); -lean_ctor_set(x_60, 2, x_35); -lean_ctor_set(x_60, 3, x_57); -x_61 = l_Lean_Core_logSnapshotTask(x_60, x_3, x_4, x_58); -lean_dec(x_3); -return x_61; +lean_object* x_59; lean_object* x_60; +x_59 = lean_box(0); +x_60 = l_Lean_addDecl___lambda__5(x_26, x_27, x_7, x_7, x_59, x_4, x_5, x_55); +return x_60; } 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_59, 0); +lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_61 = lean_ctor_get(x_26, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_26, 1); lean_inc(x_62); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - x_63 = x_59; -} else { - lean_dec_ref(x_59); - x_63 = lean_box(0); -} -lean_inc(x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_62); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(1, 1, 0); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_66, 0, x_25); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_35); -lean_ctor_set(x_66, 3, x_57); -x_67 = l_Lean_Core_logSnapshotTask(x_66, x_3, x_4, x_58); -lean_dec(x_3); -return x_67; +x_63 = l___private_Lean_AddDecl_0__Lean_isSimpleRflProof(x_62); +lean_dec(x_62); +if (x_63 == 0) +{ +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_61, 2); +lean_inc(x_64); +x_65 = l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType(x_64); +lean_dec(x_64); +if (x_65 == 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; +x_66 = 0; +x_67 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set_uint8(x_67, sizeof(void*)*1, x_66); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = l_Lean_addDecl___lambda__6___closed__1; +x_71 = lean_box(0); +x_72 = l_Lean_addDecl___lambda__5(x_26, x_27, x_69, x_70, x_71, x_4, x_5, x_55); +return x_72; } +else +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_61); +x_73 = lean_box(0); +x_74 = l_Lean_addDecl___lambda__5(x_26, x_27, x_7, x_7, x_73, x_4, x_5, x_55); +return x_74; } } else { -uint8_t x_68; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_14); -lean_dec(x_3); -lean_dec(x_1); -x_68 = !lean_is_exclusive(x_26); -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_26, 0); -x_70 = lean_io_error_to_string(x_69); -x_71 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_71, 0, x_70); -x_72 = l_Lean_MessageData_ofFormat(x_71); -lean_ctor_set(x_10, 1, x_72); -lean_ctor_set(x_10, 0, x_15); -lean_ctor_set(x_26, 0, x_10); -return x_26; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_26, 0); -x_74 = lean_ctor_get(x_26, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_26); -x_75 = lean_io_error_to_string(x_73); -x_76 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_76, 0, x_75); -x_77 = l_Lean_MessageData_ofFormat(x_76); -lean_ctor_set(x_10, 1, x_77); -lean_ctor_set(x_10, 0, x_15); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_10); -lean_ctor_set(x_78, 1, x_74); -return x_78; +lean_object* x_75; lean_object* x_76; +lean_dec(x_61); +x_75 = lean_box(0); +x_76 = l_Lean_addDecl___lambda__5(x_26, x_27, x_7, x_7, x_75, x_4, x_5, x_55); +return x_76; } } } -else -{ -uint8_t x_79; -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_1); -x_79 = !lean_is_exclusive(x_20); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_20, 0); -x_81 = lean_io_error_to_string(x_80); -x_82 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_82, 0, x_81); -x_83 = l_Lean_MessageData_ofFormat(x_82); -lean_ctor_set(x_10, 1, x_83); -lean_ctor_set(x_10, 0, x_15); -lean_ctor_set(x_20, 0, x_10); -return x_20; -} -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; -x_84 = lean_ctor_get(x_20, 0); -x_85 = lean_ctor_get(x_20, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_20); -x_86 = lean_io_error_to_string(x_84); -x_87 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_87, 0, x_86); -x_88 = l_Lean_MessageData_ofFormat(x_87); -lean_ctor_set(x_10, 1, x_88); -lean_ctor_set(x_10, 0, x_15); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_10); -lean_ctor_set(x_89, 1, x_85); -return x_89; -} -} -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; lean_object* x_98; -x_90 = lean_ctor_get(x_10, 0); -x_91 = lean_ctor_get(x_10, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_10); -x_92 = lean_ctor_get(x_90, 0); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_ctor_get(x_3, 5); -lean_inc(x_93); -x_94 = 0; -x_95 = 1; -x_96 = lean_unbox(x_9); -x_97 = lean_unbox(x_9); -lean_dec(x_9); -lean_inc(x_92); -x_98 = l_Lean_Environment_addConstAsync(x_92, x_7, x_96, x_97, x_94, x_95, x_91); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -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_ctor_get(x_99, 1); -lean_inc(x_101); -x_102 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_102, 0, x_8); -x_103 = lean_box(0); -lean_inc(x_101); -lean_inc(x_99); -x_104 = l_Lean_Environment_AddConstAsyncResult_commitConst(x_99, x_101, x_102, x_103, x_100); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; 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_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -lean_dec(x_104); -x_106 = lean_ctor_get(x_99, 0); -lean_inc(x_106); -x_107 = l_Lean_setEnv___at_Lean_compileDecls_doCompile___spec__12(x_106, x_3, x_4, x_105); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = l_IO_CancelToken_new(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_alloc_closure((void*)(l_Lean_addDecl___lambda__1___boxed), 7, 3); -lean_closure_set(x_112, 0, x_101); -lean_closure_set(x_112, 1, x_1); -lean_closure_set(x_112, 2, x_99); -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_110); -x_114 = l_Lean_addDecl___lambda__3___closed__5; -lean_inc(x_3); -lean_inc(x_113); -x_115 = l_Lean_Core_wrapAsyncAsSnapshot___rarg(x_112, x_113, x_114, x_3, x_4, x_111); -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_92, 2); -lean_inc(x_118); -lean_dec(x_92); -x_119 = l_Task_Priority_default; -x_120 = lean_io_map_task(x_116, x_118, x_119, x_94, x_117); -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; -} else { - lean_dec_ref(x_120); - x_123 = lean_box(0); -} -x_124 = l_Lean_Syntax_getTailPos_x3f(x_93, x_94); -lean_dec(x_93); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; lean_object* x_126; -lean_dec(x_123); -x_125 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_125, 0, x_103); -lean_ctor_set(x_125, 1, x_103); -lean_ctor_set(x_125, 2, x_113); -lean_ctor_set(x_125, 3, x_121); -x_126 = l_Lean_Core_logSnapshotTask(x_125, x_3, x_4, x_122); -lean_dec(x_3); -return x_126; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_127 = lean_ctor_get(x_124, 0); -lean_inc(x_127); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - x_128 = x_124; -} else { - lean_dec_ref(x_124); - x_128 = lean_box(0); -} -lean_inc(x_127); -if (lean_is_scalar(x_123)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_123; -} -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_127); -if (lean_is_scalar(x_128)) { - x_130 = lean_alloc_ctor(1, 1, 0); -} else { - x_130 = x_128; -} -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_131, 0, x_103); -lean_ctor_set(x_131, 1, x_130); -lean_ctor_set(x_131, 2, x_113); -lean_ctor_set(x_131, 3, x_121); -x_132 = l_Lean_Core_logSnapshotTask(x_131, x_3, x_4, x_122); -lean_dec(x_3); -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_dec(x_101); -lean_dec(x_99); -lean_dec(x_92); -lean_dec(x_3); -lean_dec(x_1); -x_133 = lean_ctor_get(x_104, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_104, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_135 = x_104; -} else { - lean_dec_ref(x_104); - x_135 = lean_box(0); -} -x_136 = lean_io_error_to_string(x_133); -x_137 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_137, 0, x_136); -x_138 = l_Lean_MessageData_ofFormat(x_137); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_93); -lean_ctor_set(x_139, 1, x_138); -if (lean_is_scalar(x_135)) { - x_140 = lean_alloc_ctor(1, 2, 0); -} else { - x_140 = x_135; -} -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_134); -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; lean_object* x_147; lean_object* x_148; -lean_dec(x_92); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_1); -x_141 = lean_ctor_get(x_98, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_98, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_143 = x_98; -} else { - lean_dec_ref(x_98); - x_143 = lean_box(0); -} -x_144 = lean_io_error_to_string(x_141); -x_145 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_145, 0, x_144); -x_146 = l_Lean_MessageData_ofFormat(x_145); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_93); -lean_ctor_set(x_147, 1, x_146); -if (lean_is_scalar(x_143)) { - x_148 = lean_alloc_ctor(1, 2, 0); -} else { - x_148 = x_143; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_142); -return x_148; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -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; -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_9, 0, x_6); -x_10 = 2; -x_11 = lean_box(x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_9); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_8); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Lean_addDecl___lambda__3(x_1, x_13, x_3, x_4, x_5); -lean_dec(x_4); -return x_14; -} -case 1: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_15 = lean_ctor_get(x_1, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_15); -x_19 = 0; -x_20 = lean_box(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_17); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_addDecl___lambda__3(x_1, x_22, x_3, x_4, x_5); -lean_dec(x_4); -return x_23; -} -case 2: -{ -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_24 = lean_ctor_get(x_1, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_24); -x_28 = 1; -x_29 = lean_box(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_27); -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 = l_Lean_addDecl___lambda__3(x_1, x_31, x_3, x_4, x_5); -lean_dec(x_4); -return x_32; } case 5: { -lean_object* x_33; -x_33 = lean_ctor_get(x_1, 0); -lean_inc(x_33); -if (lean_obj_tag(x_33) == 0) +lean_object* x_77; +x_77 = lean_ctor_get(x_1, 0); +lean_inc(x_77); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_34; -x_34 = l_Lean_addDecl_addSynchronously(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_34) == 0) +lean_object* x_78; +lean_dec(x_2); +x_78 = l_Lean_addDecl_addSynchronously(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_78) == 0) { -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +uint8_t x_79; +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) { -return x_34; +return x_78; } 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); -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; +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_39; -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_78); +if (x_83 == 0) { -return x_34; +return x_78; } 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_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_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 { -lean_object* x_43; -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) +lean_object* x_87; +x_87 = lean_ctor_get(x_77, 1); +lean_inc(x_87); +if (lean_obj_tag(x_87) == 0) { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_33); -if (x_44 == 0) +uint8_t x_88; +x_88 = !lean_is_exclusive(x_77); +if (x_88 == 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; lean_object* x_52; lean_object* x_53; -x_45 = lean_ctor_get(x_33, 0); -x_46 = lean_ctor_get(x_33, 1); -lean_dec(x_46); -x_47 = lean_ctor_get(x_45, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -lean_dec(x_47); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_45); -x_50 = 0; -x_51 = lean_box(x_50); -lean_ctor_set_tag(x_33, 0); -lean_ctor_set(x_33, 1, x_51); -lean_ctor_set(x_33, 0, x_49); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_48); -lean_ctor_set(x_52, 1, x_33); -x_53 = l_Lean_addDecl___lambda__3(x_1, x_52, x_3, x_4, x_5); -lean_dec(x_4); -return x_53; +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; lean_object* x_96; lean_object* x_97; +x_89 = lean_ctor_get(x_77, 0); +x_90 = lean_ctor_get(x_77, 1); +lean_dec(x_90); +x_91 = lean_ctor_get(x_89, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_89); +x_94 = 0; +x_95 = lean_box(x_94); +lean_ctor_set_tag(x_77, 0); +lean_ctor_set(x_77, 1, x_95); +lean_ctor_set(x_77, 0, x_93); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_92); +lean_ctor_set(x_96, 1, x_77); +x_97 = l_Lean_addDecl___lambda__4(x_1, x_7, x_2, x_7, x_7, x_96, x_4, x_5, x_6); +lean_dec(x_5); +return x_97; } else { -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_54 = lean_ctor_get(x_33, 0); -lean_inc(x_54); -lean_dec(x_33); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -lean_dec(x_55); -x_57 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_57, 0, x_54); -x_58 = 0; -x_59 = lean_box(x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_56); -lean_ctor_set(x_61, 1, x_60); -x_62 = l_Lean_addDecl___lambda__3(x_1, x_61, x_3, x_4, x_5); -lean_dec(x_4); -return x_62; +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; +x_98 = lean_ctor_get(x_77, 0); +lean_inc(x_98); +lean_dec(x_77); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_98); +x_102 = 0; +x_103 = lean_box(x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_100); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_addDecl___lambda__4(x_1, x_7, x_2, x_7, x_7, x_105, x_4, x_5, x_6); +lean_dec(x_5); +return x_106; } } else { -lean_object* x_63; -lean_dec(x_43); -lean_dec(x_33); -x_63 = l_Lean_addDecl_addSynchronously(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_63) == 0) +lean_object* x_107; +lean_dec(x_87); +lean_dec(x_77); +lean_dec(x_2); +x_107 = l_Lean_addDecl_addSynchronously(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_107) == 0) { -uint8_t x_64; -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) +uint8_t x_108; +x_108 = !lean_is_exclusive(x_107); +if (x_108 == 0) { -return x_63; +return x_107; } 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_dec(x_63); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_107, 0); +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_107); +x_111 = lean_alloc_ctor(0, 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_68; -x_68 = !lean_is_exclusive(x_63); -if (x_68 == 0) +uint8_t x_112; +x_112 = !lean_is_exclusive(x_107); +if (x_112 == 0) { -return x_63; +return x_107; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_63, 0); -x_70 = lean_ctor_get(x_63, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_63); -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_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_107, 0); +x_114 = lean_ctor_get(x_107, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_107); +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; } } } @@ -3936,50 +4607,51 @@ return x_71; } default: { -lean_object* x_72; -x_72 = l_Lean_addDecl_addSynchronously(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_72) == 0) +lean_object* x_116; +lean_dec(x_2); +x_116 = l_Lean_addDecl_addSynchronously(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_116) == 0) { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) +uint8_t x_117; +x_117 = !lean_is_exclusive(x_116); +if (x_117 == 0) { -return x_72; +return x_116; } 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_inc(x_75); -lean_inc(x_74); -lean_dec(x_72); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +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_77; -x_77 = !lean_is_exclusive(x_72); -if (x_77 == 0) +uint8_t x_121; +x_121 = !lean_is_exclusive(x_116); +if (x_121 == 0) { -return x_72; +return x_116; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_72, 0); -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_72); -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_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_116, 0); +x_123 = lean_ctor_get(x_116, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_116); +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; } } } @@ -4079,7 +4751,7 @@ else { lean_object* x_28; lean_object* x_29; x_28 = lean_box(0); -x_29 = l_Lean_addDecl___lambda__4(x_1, x_28, x_2, x_3, x_15); +x_29 = l_Lean_addDecl___lambda__6(x_1, x_13, x_28, x_2, x_3, x_15); return x_29; } } @@ -4180,7 +4852,7 @@ else { lean_object* x_55; lean_object* x_56; x_55 = lean_box(0); -x_56 = l_Lean_addDecl___lambda__4(x_1, x_55, x_2, x_3, x_42); +x_56 = l_Lean_addDecl___lambda__6(x_1, x_39, x_55, x_2, x_3, x_42); return x_56; } } @@ -4205,22 +4877,45 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__3___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_addDecl___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_6; -x_6 = l_Lean_addDecl___lambda__3(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_addDecl___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_addDecl___lambda__4(x_1, x_2, x_3, x_4, x_5); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_7); +lean_dec(x_7); +x_13 = l_Lean_addDecl___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_8); lean_dec(x_2); -return x_6; +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___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_addDecl___lambda__4(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_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_addDecl___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_addDecl___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_addAndCompile(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -4270,6 +4965,7 @@ return x_12; } lean_object* initialize_Lean_CoreM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Namespace(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Util_CollectAxioms(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_AddDecl(uint8_t builtin, lean_object* w) { lean_object * res; @@ -4281,8 +4977,50 @@ lean_dec_ref(res); res = initialize_Lean_Namespace(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Util_CollectAxioms(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Kernel_Environment_addDecl___closed__1 = _init_l_Lean_Kernel_Environment_addDecl___closed__1(); lean_mark_persistent(l_Lean_Kernel_Environment_addDecl___closed__1); +l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___closed__1 = _init_l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___closed__1(); +lean_mark_persistent(l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_AddDecl___hyg_242____spec__1___closed__1); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__1 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__1); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__2 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__2); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__3); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__4 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__4); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__5 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__5); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__6 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__6); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__7 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__7(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__7); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__8 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__8(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__8); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__9 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__9(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__9); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__10 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__10(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__10); +l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__11 = _init_l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__11(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_AddDecl___hyg_242____closed__11); +if (builtin) {res = l_Lean_initFn____x40_Lean_AddDecl___hyg_242_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l___private_Lean_AddDecl_0__Lean_privateConstKindsExt = lean_io_result_get_value(res); +lean_mark_persistent(l___private_Lean_AddDecl_0__Lean_privateConstKindsExt); +lean_dec_ref(res); +}l_Lean_getOriginalConstKind_x3f___closed__1 = _init_l_Lean_getOriginalConstKind_x3f___closed__1(); +lean_mark_persistent(l_Lean_getOriginalConstKind_x3f___closed__1); +l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__1 = _init_l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__1(); +lean_mark_persistent(l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__1); +l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__2 = _init_l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__2(); +lean_mark_persistent(l___private_Lean_AddDecl_0__Lean_isSimpleRflProof___closed__2); +l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__1 = _init_l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__1(); +lean_mark_persistent(l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__1); +l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__2 = _init_l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__2(); +lean_mark_persistent(l___private_Lean_AddDecl_0__Lean_looksLikeRelevantTheoremProofType___closed__2); l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__1 = _init_l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__1(); lean_mark_persistent(l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__1); l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__2 = _init_l_Lean_throwInterruptException___at_Lean_addDecl_addAsAxiom___spec__4___rarg___closed__2(); @@ -4317,8 +5055,8 @@ l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__14 = _ini lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_addDecl_addAsAxiom___spec__5___closed__14); l_Lean_addDecl_addAsAxiom___lambda__1___closed__1 = _init_l_Lean_addDecl_addAsAxiom___lambda__1___closed__1(); lean_mark_persistent(l_Lean_addDecl_addAsAxiom___lambda__1___closed__1); -l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___closed__1 = _init_l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___closed__1(); -lean_mark_persistent(l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__1___closed__1); +l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2___closed__1 = _init_l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2___closed__1(); +lean_mark_persistent(l_Lean_logWarning___at_Lean_addDecl_doAdd___spec__2___closed__1); l_Lean_addDecl_doAdd___lambda__1___closed__1 = _init_l_Lean_addDecl_doAdd___lambda__1___closed__1(); lean_mark_persistent(l_Lean_addDecl_doAdd___lambda__1___closed__1); l_Lean_addDecl_doAdd___lambda__1___closed__2 = _init_l_Lean_addDecl_doAdd___lambda__1___closed__2(); @@ -4369,8 +5107,8 @@ l_Lean_addDecl___lambda__3___closed__3 = _init_l_Lean_addDecl___lambda__3___clos lean_mark_persistent(l_Lean_addDecl___lambda__3___closed__3); l_Lean_addDecl___lambda__3___closed__4 = _init_l_Lean_addDecl___lambda__3___closed__4(); lean_mark_persistent(l_Lean_addDecl___lambda__3___closed__4); -l_Lean_addDecl___lambda__3___closed__5 = _init_l_Lean_addDecl___lambda__3___closed__5(); -lean_mark_persistent(l_Lean_addDecl___lambda__3___closed__5); +l_Lean_addDecl___lambda__6___closed__1 = _init_l_Lean_addDecl___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_addDecl___lambda__6___closed__1); l_Lean_addDecl___closed__1 = _init_l_Lean_addDecl___closed__1(); lean_mark_persistent(l_Lean_addDecl___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Data/Json/Parser.c b/stage0/stdlib/Lean/Data/Json/Parser.c index 2457f656a3..53d70b4ed5 100644 --- a/stage0/stdlib/Lean/Data/Json/Parser.c +++ b/stage0/stdlib/Lean/Data/Json/Parser.c @@ -16,14 +16,19 @@ extern "C" { static lean_object* l_Lean_Json_Parser_exponent___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_natCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_objectCore(lean_object*, lean_object*); +static lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Json_Parser_anyCore___closed__9; +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__4(uint16_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_exponent___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_lookahead___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_lookahead___rarg(lean_object*, lean_object*, lean_object*); +uint8_t lean_uint16_dec_lt(uint16_t, uint16_t); static lean_object* l_Lean_Json_Parser_numWithDecimals___closed__2; +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); extern lean_object* l_Std_Internal_Parsec_expectedEndOfInput; static lean_object* l_Lean_Json_Parser_objectCore___closed__5; @@ -34,11 +39,13 @@ static lean_object* l_Lean_Json_Parser_numSign___closed__1; static lean_object* l_Lean_Json_Parser_natMaybeZero___closed__1; static lean_object* l_Lean_Json_Parser_numWithDecimals___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_natNumDigits(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_hexChar(lean_object*); static lean_object* l_Lean_Json_Parser_arrayCore___closed__1; static lean_object* l_Lean_Json_Parser_objectCore___closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_natMaybeZero(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__7; LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__3; @@ -55,6 +62,7 @@ lean_object* l_Lean_JsonNumber_shiftl(lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_strCore___closed__1; static lean_object* l_Lean_Json_Parser_natNumDigits___closed__1; static lean_object* l_Lean_Json_Parser_anyCore___closed__4; +uint16_t lean_uint32_to_uint16(uint32_t); extern lean_object* l_Std_Internal_Parsec_unexpectedEndOfInput; static lean_object* l_Lean_Json_Parser_objectCore___closed__2; LEAN_EXPORT lean_object* l_Lean_Json_Parser_exponent(lean_object*, lean_object*); @@ -63,6 +71,7 @@ static lean_object* l_Lean_Json_Parser_numSign___closed__2; LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__5; static lean_object* l_Lean_Json_Parser_lookahead___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_natNonZero(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_System_Platform_numBits; LEAN_EXPORT lean_object* l_Lean_Json_Parser_exponent___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); uint32_t lean_string_utf8_get_fast(lean_object*, lean_object*); @@ -72,10 +81,13 @@ LEAN_EXPORT lean_object* l_Lean_Json_Parser_lookahead(lean_object*); static lean_object* l_Lean_Json_Parser_anyCore___closed__8; uint32_t lean_uint32_sub(uint32_t, uint32_t); static lean_object* l_Lean_Json_Parser_objectCore___closed__1; +LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__9; LEAN_EXPORT lean_object* l_Lean_Json_Parser_strCore(lean_object*, lean_object*); +uint16_t lean_uint16_lor(uint16_t, uint16_t); lean_object* lean_int_mul(lean_object*, lean_object*); lean_object* lean_nat_pow(lean_object*, lean_object*); lean_object* l_Std_Internal_Parsec_String_Parser_run___rarg(lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); static lean_object* l_Lean_Json_Parser_escapedChar___closed__1; @@ -83,6 +95,8 @@ static lean_object* l_Lean_Json_parse___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_exponent___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_anyCore___closed__7; LEAN_EXPORT lean_object* l_Lean_Json_Parser_num(lean_object*); +uint32_t lean_uint32_lor(uint32_t, uint32_t); +uint32_t lean_uint32_shift_left(uint32_t, uint32_t); static lean_object* l_Lean_Json_Parser_natNonZero___closed__2; lean_object* lean_nat_mul(lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_anyCore___closed__1; @@ -92,6 +106,7 @@ lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_numSign(lean_object*); lean_object* l___private_Std_Internal_Parsec_String_0__Std_Internal_Parsec_String_skipWs(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__1; +uint32_t lean_uint32_land(uint32_t, uint32_t); lean_object* lean_int_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_nat(lean_object*); uint32_t lean_uint32_add(uint32_t, uint32_t); @@ -100,18 +115,22 @@ lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_anyCore___closed__2; lean_object* lean_int_neg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_numWithDecimals___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_Parser_str___closed__1; +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__3(uint16_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_str(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_arrayCore(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__1(uint16_t, uint16_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_numWithDecimals(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_parse(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +uint16_t lean_uint16_shift_left(uint16_t, uint16_t); lean_object* l_Lean_RBNode_insert___at_Lean_Json_mkObj___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__8; static lean_object* l_Lean_Json_Parser_natNonZero___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__6; -lean_object* l_Char_ofNat(lean_object*); +uint32_t lean_uint16_to_uint32(uint16_t); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__2(uint16_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_anyCore(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair(uint16_t, lean_object*); static lean_object* _init_l_Lean_Json_Parser_hexChar___closed__1() { _start: { @@ -148,7 +167,7 @@ uint8_t x_8; x_8 = !lean_is_exclusive(x_1); if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; uint32_t x_11; lean_object* x_12; lean_object* x_13; uint32_t x_50; uint8_t x_51; +lean_object* x_9; lean_object* x_10; uint32_t x_11; lean_object* x_12; lean_object* x_13; uint32_t x_53; uint8_t x_54; x_9 = lean_ctor_get(x_1, 1); lean_dec(x_9); x_10 = lean_ctor_get(x_1, 0); @@ -157,39 +176,40 @@ x_11 = lean_string_utf8_get_fast(x_2, x_3); x_12 = lean_string_utf8_next_fast(x_2, x_3); lean_dec(x_3); lean_ctor_set(x_1, 1, x_12); -x_50 = 48; -x_51 = lean_uint32_dec_le(x_50, x_11); -if (x_51 == 0) -{ -lean_object* x_52; -x_52 = lean_box(0); -x_13 = x_52; -goto block_49; -} -else -{ -uint32_t x_53; uint8_t x_54; -x_53 = 57; -x_54 = lean_uint32_dec_le(x_11, x_53); +x_53 = 48; +x_54 = lean_uint32_dec_le(x_53, x_11); if (x_54 == 0) { lean_object* x_55; x_55 = lean_box(0); x_13 = x_55; -goto block_49; +goto block_52; } else { -uint32_t x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_uint32_sub(x_11, x_50); -x_57 = lean_uint32_to_nat(x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_1); -lean_ctor_set(x_58, 1, x_57); -return x_58; +uint32_t x_56; uint8_t x_57; +x_56 = 57; +x_57 = lean_uint32_dec_le(x_11, x_56); +if (x_57 == 0) +{ +lean_object* x_58; +x_58 = lean_box(0); +x_13 = x_58; +goto block_52; +} +else +{ +uint32_t x_59; uint16_t x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_uint32_sub(x_11, x_53); +x_60 = lean_uint32_to_uint16(x_59); +x_61 = lean_box(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } -block_49: +block_52: { uint32_t x_14; uint8_t x_15; lean_dec(x_13); @@ -225,228 +245,235 @@ return x_23; } else { -uint32_t x_24; uint32_t x_25; uint32_t x_26; lean_object* x_27; lean_object* x_28; +uint32_t x_24; uint32_t x_25; uint32_t x_26; uint16_t x_27; lean_object* x_28; lean_object* x_29; x_24 = lean_uint32_sub(x_11, x_16); x_25 = 10; x_26 = lean_uint32_add(x_24, x_25); -x_27 = lean_uint32_to_nat(x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_1); -lean_ctor_set(x_28, 1, x_27); -return x_28; +x_27 = lean_uint32_to_uint16(x_26); +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } else { -uint32_t x_29; uint8_t x_30; -x_29 = 102; -x_30 = lean_uint32_dec_le(x_11, x_29); -if (x_30 == 0) +uint32_t x_30; uint8_t x_31; +x_30 = 102; +x_31 = lean_uint32_dec_le(x_11, x_30); +if (x_31 == 0) { -uint32_t x_31; uint8_t x_32; -x_31 = 65; -x_32 = lean_uint32_dec_le(x_31, x_11); -if (x_32 == 0) +uint32_t x_32; uint8_t x_33; +x_32 = 65; +x_33 = lean_uint32_dec_le(x_32, x_11); +if (x_33 == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = l_Lean_Json_Parser_hexChar___closed__1; -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = l_Lean_Json_Parser_hexChar___closed__1; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_34); +return x_35; } else { -uint32_t x_35; uint8_t x_36; -x_35 = 70; -x_36 = lean_uint32_dec_le(x_11, x_35); -if (x_36 == 0) +uint32_t x_36; uint8_t x_37; +x_36 = 70; +x_37 = lean_uint32_dec_le(x_11, x_36); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; -x_37 = l_Lean_Json_Parser_hexChar___closed__1; -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_1); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_object* x_38; lean_object* x_39; +x_38 = l_Lean_Json_Parser_hexChar___closed__1; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_38); +return x_39; } else { -uint32_t x_39; uint32_t x_40; uint32_t x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_uint32_sub(x_11, x_31); -x_40 = 10; -x_41 = lean_uint32_add(x_39, x_40); -x_42 = lean_uint32_to_nat(x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_1); -lean_ctor_set(x_43, 1, x_42); -return x_43; +uint32_t x_40; uint32_t x_41; uint32_t x_42; uint16_t x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_uint32_sub(x_11, x_32); +x_41 = 10; +x_42 = lean_uint32_add(x_40, x_41); +x_43 = lean_uint32_to_uint16(x_42); +x_44 = lean_box(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -uint32_t x_44; uint32_t x_45; uint32_t x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_uint32_sub(x_11, x_14); -x_45 = 10; -x_46 = lean_uint32_add(x_44, x_45); -x_47 = lean_uint32_to_nat(x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_1); -lean_ctor_set(x_48, 1, x_47); -return x_48; +uint32_t x_46; uint32_t x_47; uint32_t x_48; uint16_t x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_uint32_sub(x_11, x_14); +x_47 = 10; +x_48 = lean_uint32_add(x_46, x_47); +x_49 = lean_uint32_to_uint16(x_48); +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_1); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } } else { -uint32_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint32_t x_99; uint8_t x_100; +uint32_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint32_t x_106; uint8_t x_107; lean_dec(x_1); -x_59 = lean_string_utf8_get_fast(x_2, x_3); -x_60 = lean_string_utf8_next_fast(x_2, x_3); +x_63 = lean_string_utf8_get_fast(x_2, x_3); +x_64 = lean_string_utf8_next_fast(x_2, x_3); lean_dec(x_3); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_2); -lean_ctor_set(x_61, 1, x_60); -x_99 = 48; -x_100 = lean_uint32_dec_le(x_99, x_59); -if (x_100 == 0) +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_2); +lean_ctor_set(x_65, 1, x_64); +x_106 = 48; +x_107 = lean_uint32_dec_le(x_106, x_63); +if (x_107 == 0) { -lean_object* x_101; -x_101 = lean_box(0); -x_62 = x_101; -goto block_98; +lean_object* x_108; +x_108 = lean_box(0); +x_66 = x_108; +goto block_105; } else { -uint32_t x_102; uint8_t x_103; -x_102 = 57; -x_103 = lean_uint32_dec_le(x_59, x_102); -if (x_103 == 0) +uint32_t x_109; uint8_t x_110; +x_109 = 57; +x_110 = lean_uint32_dec_le(x_63, x_109); +if (x_110 == 0) { -lean_object* x_104; -x_104 = lean_box(0); -x_62 = x_104; -goto block_98; +lean_object* x_111; +x_111 = lean_box(0); +x_66 = x_111; +goto block_105; } else { -uint32_t x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_uint32_sub(x_59, x_99); -x_106 = lean_uint32_to_nat(x_105); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_61); -lean_ctor_set(x_107, 1, x_106); -return x_107; +uint32_t x_112; uint16_t x_113; lean_object* x_114; lean_object* x_115; +x_112 = lean_uint32_sub(x_63, x_106); +x_113 = lean_uint32_to_uint16(x_112); +x_114 = lean_box(x_113); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_65); +lean_ctor_set(x_115, 1, x_114); +return x_115; } } -block_98: +block_105: { -uint32_t x_63; uint8_t x_64; -lean_dec(x_62); -x_63 = 97; -x_64 = lean_uint32_dec_le(x_63, x_59); -if (x_64 == 0) -{ -uint32_t x_65; uint8_t x_66; -x_65 = 65; -x_66 = lean_uint32_dec_le(x_65, x_59); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -x_67 = l_Lean_Json_Parser_hexChar___closed__1; -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_61); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} -else +uint32_t x_67; uint8_t x_68; +lean_dec(x_66); +x_67 = 97; +x_68 = lean_uint32_dec_le(x_67, x_63); +if (x_68 == 0) { uint32_t x_69; uint8_t x_70; -x_69 = 70; -x_70 = lean_uint32_dec_le(x_59, x_69); +x_69 = 65; +x_70 = lean_uint32_dec_le(x_69, x_63); if (x_70 == 0) { lean_object* x_71; lean_object* x_72; x_71 = l_Lean_Json_Parser_hexChar___closed__1; x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_61); +lean_ctor_set(x_72, 0, x_65); lean_ctor_set(x_72, 1, x_71); return x_72; } else { -uint32_t x_73; uint32_t x_74; uint32_t x_75; lean_object* x_76; lean_object* x_77; -x_73 = lean_uint32_sub(x_59, x_65); -x_74 = 10; -x_75 = lean_uint32_add(x_73, x_74); -x_76 = lean_uint32_to_nat(x_75); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_61); -lean_ctor_set(x_77, 1, x_76); -return x_77; +uint32_t x_73; uint8_t x_74; +x_73 = 70; +x_74 = lean_uint32_dec_le(x_63, x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; +x_75 = l_Lean_Json_Parser_hexChar___closed__1; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_65); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +else +{ +uint32_t x_77; uint32_t x_78; uint32_t x_79; uint16_t x_80; lean_object* x_81; lean_object* x_82; +x_77 = lean_uint32_sub(x_63, x_69); +x_78 = 10; +x_79 = lean_uint32_add(x_77, x_78); +x_80 = lean_uint32_to_uint16(x_79); +x_81 = lean_box(x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_65); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } else { -uint32_t x_78; uint8_t x_79; -x_78 = 102; -x_79 = lean_uint32_dec_le(x_59, x_78); -if (x_79 == 0) +uint32_t x_83; uint8_t x_84; +x_83 = 102; +x_84 = lean_uint32_dec_le(x_63, x_83); +if (x_84 == 0) { -uint32_t x_80; uint8_t x_81; -x_80 = 65; -x_81 = lean_uint32_dec_le(x_80, x_59); -if (x_81 == 0) +uint32_t x_85; uint8_t x_86; +x_85 = 65; +x_86 = lean_uint32_dec_le(x_85, x_63); +if (x_86 == 0) { -lean_object* x_82; lean_object* x_83; -x_82 = l_Lean_Json_Parser_hexChar___closed__1; -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_61); -lean_ctor_set(x_83, 1, x_82); -return x_83; +lean_object* x_87; lean_object* x_88; +x_87 = l_Lean_Json_Parser_hexChar___closed__1; +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_65); +lean_ctor_set(x_88, 1, x_87); +return x_88; } else { -uint32_t x_84; uint8_t x_85; -x_84 = 70; -x_85 = lean_uint32_dec_le(x_59, x_84); -if (x_85 == 0) +uint32_t x_89; uint8_t x_90; +x_89 = 70; +x_90 = lean_uint32_dec_le(x_63, x_89); +if (x_90 == 0) { -lean_object* x_86; lean_object* x_87; -x_86 = l_Lean_Json_Parser_hexChar___closed__1; -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_61); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -else -{ -uint32_t x_88; uint32_t x_89; uint32_t x_90; lean_object* x_91; lean_object* x_92; -x_88 = lean_uint32_sub(x_59, x_80); -x_89 = 10; -x_90 = lean_uint32_add(x_88, x_89); -x_91 = lean_uint32_to_nat(x_90); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_61); +lean_object* x_91; lean_object* x_92; +x_91 = l_Lean_Json_Parser_hexChar___closed__1; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_65); lean_ctor_set(x_92, 1, x_91); return x_92; } +else +{ +uint32_t x_93; uint32_t x_94; uint32_t x_95; uint16_t x_96; lean_object* x_97; lean_object* x_98; +x_93 = lean_uint32_sub(x_63, x_85); +x_94 = 10; +x_95 = lean_uint32_add(x_93, x_94); +x_96 = lean_uint32_to_uint16(x_95); +x_97 = lean_box(x_96); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_65); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} } } else { -uint32_t x_93; uint32_t x_94; uint32_t x_95; lean_object* x_96; lean_object* x_97; -x_93 = lean_uint32_sub(x_59, x_63); -x_94 = 10; -x_95 = lean_uint32_add(x_93, x_94); -x_96 = lean_uint32_to_nat(x_95); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_61); -lean_ctor_set(x_97, 1, x_96); -return x_97; +uint32_t x_99; uint32_t x_100; uint32_t x_101; uint16_t x_102; lean_object* x_103; lean_object* x_104; +x_99 = lean_uint32_sub(x_63, x_67); +x_100 = 10; +x_101 = lean_uint32_add(x_99, x_100); +x_102 = lean_uint32_to_uint16(x_101); +x_103 = lean_box(x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_65); +lean_ctor_set(x_104, 1, x_103); +return x_104; } } } @@ -454,6 +481,606 @@ return x_97; } } } +static lean_object* _init_l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__1(uint16_t x_1, uint16_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint32_t x_5; uint32_t x_6; uint32_t x_7; uint32_t x_8; uint32_t x_9; uint32_t x_10; uint32_t x_11; uint32_t x_12; uint32_t x_13; uint32_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_5 = lean_uint16_to_uint32(x_1); +x_6 = 1023; +x_7 = lean_uint32_land(x_5, x_6); +x_8 = 10; +x_9 = lean_uint32_shift_left(x_7, x_8); +x_10 = lean_uint16_to_uint32(x_2); +x_11 = lean_uint32_land(x_10, x_6); +x_12 = lean_uint32_lor(x_9, x_11); +x_13 = 65536; +x_14 = lean_uint32_add(x_12, x_13); +x_15 = lean_uint32_to_nat(x_14); +x_16 = lean_unsigned_to_nat(55296u); +x_17 = lean_nat_dec_lt(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_unsigned_to_nat(57343u); +x_19 = lean_nat_dec_lt(x_18, x_15); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_15); +x_20 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +else +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_unsigned_to_nat(1114112u); +x_23 = lean_nat_dec_lt(x_15, x_22); +lean_dec(x_15); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_4); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_box_uint32(x_14); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_4); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_15); +x_28 = lean_box_uint32(x_14); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_4); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__2(uint16_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Json_Parser_hexChar(x_3); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +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 = l_Lean_Json_Parser_hexChar(x_5); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +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_Json_Parser_hexChar(x_8); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint16_t x_14; uint16_t x_15; uint16_t x_16; uint16_t x_17; uint16_t x_18; uint16_t x_19; uint16_t x_20; uint16_t x_21; uint16_t x_22; uint16_t x_23; uint8_t x_24; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = 8; +x_15 = lean_unbox(x_6); +lean_dec(x_6); +x_16 = lean_uint16_shift_left(x_15, x_14); +x_17 = 4; +x_18 = lean_unbox(x_9); +lean_dec(x_9); +x_19 = lean_uint16_shift_left(x_18, x_17); +x_20 = lean_uint16_lor(x_16, x_19); +x_21 = lean_unbox(x_13); +lean_dec(x_13); +x_22 = lean_uint16_lor(x_20, x_21); +x_23 = 3072; +x_24 = lean_uint16_dec_lt(x_22, x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_free_object(x_10); +x_25 = lean_box(0); +x_26 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1(x_1, x_22, x_25, x_12); +return x_26; +} +else +{ +lean_object* x_27; +x_27 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 1, x_27); +return x_10; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint16_t x_30; uint16_t x_31; uint16_t x_32; uint16_t x_33; uint16_t x_34; uint16_t x_35; uint16_t x_36; uint16_t x_37; uint16_t x_38; uint16_t x_39; uint8_t x_40; +x_28 = lean_ctor_get(x_10, 0); +x_29 = lean_ctor_get(x_10, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_10); +x_30 = 8; +x_31 = lean_unbox(x_6); +lean_dec(x_6); +x_32 = lean_uint16_shift_left(x_31, x_30); +x_33 = 4; +x_34 = lean_unbox(x_9); +lean_dec(x_9); +x_35 = lean_uint16_shift_left(x_34, x_33); +x_36 = lean_uint16_lor(x_32, x_35); +x_37 = lean_unbox(x_29); +lean_dec(x_29); +x_38 = lean_uint16_lor(x_36, x_37); +x_39 = 3072; +x_40 = lean_uint16_dec_lt(x_38, x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_box(0); +x_42 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1(x_1, x_38, x_41, x_28); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_28); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_9); +lean_dec(x_6); +x_45 = !lean_is_exclusive(x_10); +if (x_45 == 0) +{ +return x_10; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_10, 0); +x_47 = lean_ctor_get(x_10, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_10); +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_6); +x_49 = !lean_is_exclusive(x_7); +if (x_49 == 0) +{ +return x_7; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_7, 0); +x_51 = lean_ctor_get(x_7, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_7); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +x_53 = !lean_is_exclusive(x_4); +if (x_53 == 0) +{ +return x_4; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_4, 0); +x_55 = lean_ctor_get(x_4, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_4); +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_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__3(uint16_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +x_6 = lean_string_utf8_byte_size(x_4); +x_7 = lean_nat_dec_lt(x_5, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +x_8 = l_Std_Internal_Parsec_unexpectedEndOfInput; +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint32_t x_13; lean_object* x_14; uint32_t x_15; uint8_t x_16; +x_11 = lean_ctor_get(x_3, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_3, 0); +lean_dec(x_12); +x_13 = lean_string_utf8_get_fast(x_4, x_5); +x_14 = lean_string_utf8_next_fast(x_4, x_5); +lean_dec(x_5); +lean_ctor_set(x_3, 1, x_14); +x_15 = 100; +x_16 = lean_uint32_dec_eq(x_13, x_15); +if (x_16 == 0) +{ +uint32_t x_17; uint8_t x_18; +x_17 = 68; +x_18 = lean_uint32_dec_eq(x_13, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_3); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +x_22 = l_Lean_Json_Parser_finishSurrogatePair___lambda__2(x_1, x_21, x_3); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l_Lean_Json_Parser_finishSurrogatePair___lambda__2(x_1, x_23, x_3); +return x_24; +} +} +else +{ +uint32_t x_25; lean_object* x_26; lean_object* x_27; uint32_t x_28; uint8_t x_29; +lean_dec(x_3); +x_25 = lean_string_utf8_get_fast(x_4, x_5); +x_26 = lean_string_utf8_next_fast(x_4, x_5); +lean_dec(x_5); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_4); +lean_ctor_set(x_27, 1, x_26); +x_28 = 100; +x_29 = lean_uint32_dec_eq(x_25, x_28); +if (x_29 == 0) +{ +uint32_t x_30; uint8_t x_31; +x_30 = 68; +x_31 = lean_uint32_dec_eq(x_25, x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_box(0); +x_35 = l_Lean_Json_Parser_finishSurrogatePair___lambda__2(x_1, x_34, x_27); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_box(0); +x_37 = l_Lean_Json_Parser_finishSurrogatePair___lambda__2(x_1, x_36, x_27); +return x_37; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__4(uint16_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +x_6 = lean_string_utf8_byte_size(x_4); +x_7 = lean_nat_dec_lt(x_5, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +x_8 = l_Std_Internal_Parsec_unexpectedEndOfInput; +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint32_t x_13; lean_object* x_14; uint32_t x_15; uint8_t x_16; +x_11 = lean_ctor_get(x_3, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_3, 0); +lean_dec(x_12); +x_13 = lean_string_utf8_get_fast(x_4, x_5); +x_14 = lean_string_utf8_next_fast(x_4, x_5); +lean_dec(x_5); +lean_ctor_set(x_3, 1, x_14); +x_15 = 117; +x_16 = lean_uint32_dec_eq(x_13, x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_3); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l_Lean_Json_Parser_finishSurrogatePair___lambda__3(x_1, x_19, x_3); +return x_20; +} +} +else +{ +uint32_t x_21; lean_object* x_22; lean_object* x_23; uint32_t x_24; uint8_t x_25; +lean_dec(x_3); +x_21 = lean_string_utf8_get_fast(x_4, x_5); +x_22 = lean_string_utf8_next_fast(x_4, x_5); +lean_dec(x_5); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_4); +lean_ctor_set(x_23, 1, x_22); +x_24 = 117; +x_25 = lean_uint32_dec_eq(x_21, x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_box(0); +x_29 = l_Lean_Json_Parser_finishSurrogatePair___lambda__3(x_1, x_28, x_23); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair(uint16_t x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_string_utf8_byte_size(x_3); +x_6 = lean_nat_dec_lt(x_4, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); +x_7 = l_Std_Internal_Parsec_unexpectedEndOfInput; +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_2); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_2); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; uint32_t x_12; lean_object* x_13; uint32_t x_14; uint8_t x_15; +x_10 = lean_ctor_get(x_2, 1); +lean_dec(x_10); +x_11 = lean_ctor_get(x_2, 0); +lean_dec(x_11); +x_12 = lean_string_utf8_get_fast(x_3, x_4); +x_13 = lean_string_utf8_next_fast(x_3, x_4); +lean_dec(x_4); +lean_ctor_set(x_2, 1, x_13); +x_14 = 92; +x_15 = lean_uint32_dec_eq(x_12, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Json_Parser_finishSurrogatePair___lambda__4(x_1, x_18, x_2); +return x_19; +} +} +else +{ +uint32_t x_20; lean_object* x_21; lean_object* x_22; uint32_t x_23; uint8_t x_24; +lean_dec(x_2); +x_20 = lean_string_utf8_get_fast(x_3, x_4); +x_21 = lean_string_utf8_next_fast(x_3, x_4); +lean_dec(x_4); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_3); +lean_ctor_set(x_22, 1, x_21); +x_23 = 92; +x_24 = lean_uint32_dec_eq(x_20, x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_22); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_box(0); +x_28 = l_Lean_Json_Parser_finishSurrogatePair___lambda__4(x_1, x_27, x_22); +return x_28; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint16_t x_5; uint16_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1(x_5, x_6, x_3, x_4); +lean_dec(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint16_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Json_Parser_finishSurrogatePair___lambda__2(x_4, x_2, x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint16_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Json_Parser_finishSurrogatePair___lambda__3(x_4, x_2, x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint16_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Json_Parser_finishSurrogatePair___lambda__4(x_4, x_2, x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Json_Parser_finishSurrogatePair___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint16_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lean_Json_Parser_finishSurrogatePair(x_3, x_2); +return x_4; +} +} static lean_object* _init_l_Lean_Json_Parser_escapedChar___closed__1() { _start: { @@ -466,7 +1093,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__1() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 9; +x_1 = 65533; x_2 = lean_box_uint32(x_1); return x_2; } @@ -475,7 +1102,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__2() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 13; +x_1 = 9; x_2 = lean_box_uint32(x_1); return x_2; } @@ -484,7 +1111,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__3() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 10; +x_1 = 13; x_2 = lean_box_uint32(x_1); return x_2; } @@ -493,7 +1120,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__4() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 12; +x_1 = 10; x_2 = lean_box_uint32(x_1); return x_2; } @@ -502,7 +1129,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__5() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 8; +x_1 = 12; x_2 = lean_box_uint32(x_1); return x_2; } @@ -511,7 +1138,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__6() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 47; +x_1 = 8; x_2 = lean_box_uint32(x_1); return x_2; } @@ -520,7 +1147,7 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__7() { _start: { uint32_t x_1; lean_object* x_2; -x_1 = 34; +x_1 = 47; x_2 = lean_box_uint32(x_1); return x_2; } @@ -529,6 +1156,15 @@ static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__8() { _start: { uint32_t x_1; lean_object* x_2; +x_1 = 34; +x_2 = lean_box_uint32(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Json_Parser_escapedChar___boxed__const__9() { +_start: +{ +uint32_t x_1; lean_object* x_2; x_1 = 92; x_2 = lean_box_uint32(x_1); return x_2; @@ -659,574 +1295,921 @@ uint8_t x_43; 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; uint32_t x_55; lean_object* x_56; -x_44 = lean_ctor_get(x_42, 1); -x_45 = lean_unsigned_to_nat(4096u); -x_46 = lean_nat_mul(x_45, x_35); +lean_object* x_44; lean_object* x_45; uint16_t x_46; uint16_t x_47; uint16_t x_48; uint16_t x_49; uint16_t x_50; uint16_t x_51; uint16_t x_52; uint16_t x_53; uint16_t x_54; uint16_t x_55; uint16_t x_56; uint16_t x_57; uint16_t x_58; uint16_t x_59; uint8_t x_60; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +x_46 = 12; +x_47 = lean_unbox(x_35); lean_dec(x_35); -x_47 = lean_unsigned_to_nat(256u); -x_48 = lean_nat_mul(x_47, x_38); +x_48 = lean_uint16_shift_left(x_47, x_46); +x_49 = 8; +x_50 = lean_unbox(x_38); lean_dec(x_38); -x_49 = lean_nat_add(x_46, x_48); -lean_dec(x_48); -lean_dec(x_46); -x_50 = lean_unsigned_to_nat(16u); -x_51 = lean_nat_mul(x_50, x_41); +x_51 = lean_uint16_shift_left(x_50, x_49); +x_52 = lean_uint16_lor(x_48, x_51); +x_53 = 4; +x_54 = lean_unbox(x_41); lean_dec(x_41); -x_52 = lean_nat_add(x_49, x_51); -lean_dec(x_51); -lean_dec(x_49); -x_53 = lean_nat_add(x_52, x_44); +x_55 = lean_uint16_shift_left(x_54, x_53); +x_56 = lean_uint16_lor(x_52, x_55); +x_57 = lean_unbox(x_45); +lean_dec(x_45); +x_58 = lean_uint16_lor(x_56, x_57); +x_59 = 55296; +x_60 = lean_uint16_dec_lt(x_58, x_59); +if (x_60 == 0) +{ +uint16_t x_61; uint8_t x_62; +x_61 = 57344; +x_62 = lean_uint16_dec_lt(x_58, x_61); +if (x_62 == 0) +{ +uint32_t x_63; lean_object* x_64; +x_63 = lean_uint16_to_uint32(x_58); +x_64 = lean_box_uint32(x_63); +lean_ctor_set(x_42, 1, x_64); +return x_42; +} +else +{ +uint16_t x_65; uint8_t x_66; +x_65 = 56320; +x_66 = lean_uint16_dec_lt(x_58, x_65); +if (x_66 == 0) +{ +lean_object* x_67; +x_67 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +lean_ctor_set(x_42, 1, x_67); +return x_42; +} +else +{ +lean_object* x_68; +lean_free_object(x_42); +lean_inc(x_44); +x_68 = l_Lean_Json_Parser_finishSurrogatePair(x_58, x_44); +if (lean_obj_tag(x_68) == 0) +{ +uint8_t x_69; lean_dec(x_44); -lean_dec(x_52); -x_54 = l_Char_ofNat(x_53); -lean_dec(x_53); -x_55 = lean_unbox_uint32(x_54); -lean_dec(x_54); -x_56 = lean_box_uint32(x_55); -lean_ctor_set(x_42, 1, x_56); -return x_42; +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +return x_68; } 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; uint32_t x_69; lean_object* x_70; lean_object* x_71; -x_57 = lean_ctor_get(x_42, 0); -x_58 = lean_ctor_get(x_42, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_42); -x_59 = lean_unsigned_to_nat(4096u); -x_60 = lean_nat_mul(x_59, x_35); -lean_dec(x_35); -x_61 = lean_unsigned_to_nat(256u); -x_62 = lean_nat_mul(x_61, x_38); -lean_dec(x_38); -x_63 = lean_nat_add(x_60, x_62); -lean_dec(x_62); -lean_dec(x_60); -x_64 = lean_unsigned_to_nat(16u); -x_65 = lean_nat_mul(x_64, x_41); -lean_dec(x_41); -x_66 = lean_nat_add(x_63, x_65); -lean_dec(x_65); -lean_dec(x_63); -x_67 = lean_nat_add(x_66, x_58); -lean_dec(x_58); -lean_dec(x_66); -x_68 = l_Char_ofNat(x_67); -lean_dec(x_67); -x_69 = lean_unbox_uint32(x_68); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_68, 0); +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_inc(x_70); lean_dec(x_68); -x_70 = lean_box_uint32(x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_57); -lean_ctor_set(x_71, 1, x_70); -return x_71; +x_72 = lean_alloc_ctor(0, 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_72; +uint8_t x_73; +x_73 = !lean_is_exclusive(x_68); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_74 = lean_ctor_get(x_68, 1); +x_75 = lean_ctor_get(x_68, 0); +lean_dec(x_75); +x_76 = lean_ctor_get(x_44, 1); +lean_inc(x_76); +x_77 = lean_nat_dec_eq(x_76, x_76); +lean_dec(x_76); +if (x_77 == 0) +{ +lean_ctor_set(x_68, 0, x_44); +return x_68; +} +else +{ +lean_object* x_78; +lean_dec(x_74); +x_78 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +lean_ctor_set_tag(x_68, 0); +lean_ctor_set(x_68, 1, x_78); +lean_ctor_set(x_68, 0, x_44); +return x_68; +} +} +else +{ +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_68, 1); +lean_inc(x_79); +lean_dec(x_68); +x_80 = lean_ctor_get(x_44, 1); +lean_inc(x_80); +x_81 = lean_nat_dec_eq(x_80, x_80); +lean_dec(x_80); +if (x_81 == 0) +{ +lean_object* x_82; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_44); +lean_ctor_set(x_82, 1, x_79); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_79); +x_83 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_44); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +} +} +} +else +{ +uint32_t x_85; lean_object* x_86; +x_85 = lean_uint16_to_uint32(x_58); +x_86 = lean_box_uint32(x_85); +lean_ctor_set(x_42, 1, x_86); +return x_42; +} +} +else +{ +lean_object* x_87; lean_object* x_88; uint16_t x_89; uint16_t x_90; uint16_t x_91; uint16_t x_92; uint16_t x_93; uint16_t x_94; uint16_t x_95; uint16_t x_96; uint16_t x_97; uint16_t x_98; uint16_t x_99; uint16_t x_100; uint16_t x_101; uint16_t x_102; uint8_t x_103; +x_87 = lean_ctor_get(x_42, 0); +x_88 = lean_ctor_get(x_42, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_42); +x_89 = 12; +x_90 = lean_unbox(x_35); +lean_dec(x_35); +x_91 = lean_uint16_shift_left(x_90, x_89); +x_92 = 8; +x_93 = lean_unbox(x_38); +lean_dec(x_38); +x_94 = lean_uint16_shift_left(x_93, x_92); +x_95 = lean_uint16_lor(x_91, x_94); +x_96 = 4; +x_97 = lean_unbox(x_41); +lean_dec(x_41); +x_98 = lean_uint16_shift_left(x_97, x_96); +x_99 = lean_uint16_lor(x_95, x_98); +x_100 = lean_unbox(x_88); +lean_dec(x_88); +x_101 = lean_uint16_lor(x_99, x_100); +x_102 = 55296; +x_103 = lean_uint16_dec_lt(x_101, x_102); +if (x_103 == 0) +{ +uint16_t x_104; uint8_t x_105; +x_104 = 57344; +x_105 = lean_uint16_dec_lt(x_101, x_104); +if (x_105 == 0) +{ +uint32_t x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_uint16_to_uint32(x_101); +x_107 = lean_box_uint32(x_106); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_87); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +else +{ +uint16_t x_109; uint8_t x_110; +x_109 = 56320; +x_110 = lean_uint16_dec_lt(x_101, x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +x_111 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_87); +lean_ctor_set(x_112, 1, x_111); +return x_112; +} +else +{ +lean_object* x_113; +lean_inc(x_87); +x_113 = l_Lean_Json_Parser_finishSurrogatePair(x_101, x_87); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_87); +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; uint8_t x_121; +x_118 = lean_ctor_get(x_113, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_119 = x_113; +} else { + lean_dec_ref(x_113); + x_119 = lean_box(0); +} +x_120 = lean_ctor_get(x_87, 1); +lean_inc(x_120); +x_121 = lean_nat_dec_eq(x_120, x_120); +lean_dec(x_120); +if (x_121 == 0) +{ +lean_object* x_122; +if (lean_is_scalar(x_119)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_119; +} +lean_ctor_set(x_122, 0, x_87); +lean_ctor_set(x_122, 1, x_118); +return x_122; +} +else +{ +lean_object* x_123; lean_object* x_124; +lean_dec(x_118); +x_123 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +if (lean_is_scalar(x_119)) { + x_124 = lean_alloc_ctor(0, 2, 0); +} else { + x_124 = x_119; + lean_ctor_set_tag(x_124, 0); +} +lean_ctor_set(x_124, 0, x_87); +lean_ctor_set(x_124, 1, x_123); +return x_124; +} +} +} +} +} +else +{ +uint32_t x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_uint16_to_uint32(x_101); +x_126 = lean_box_uint32(x_125); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_87); +lean_ctor_set(x_127, 1, x_126); +return x_127; +} +} +} +else +{ +uint8_t x_128; lean_dec(x_41); lean_dec(x_38); lean_dec(x_35); -x_72 = !lean_is_exclusive(x_42); -if (x_72 == 0) +x_128 = !lean_is_exclusive(x_42); +if (x_128 == 0) { return x_42; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_42, 0); -x_74 = lean_ctor_get(x_42, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_42, 0); +x_130 = lean_ctor_get(x_42, 1); +lean_inc(x_130); +lean_inc(x_129); lean_dec(x_42); -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_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 { -uint8_t x_76; +uint8_t x_132; lean_dec(x_38); lean_dec(x_35); -x_76 = !lean_is_exclusive(x_39); -if (x_76 == 0) +x_132 = !lean_is_exclusive(x_39); +if (x_132 == 0) { return x_39; } 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_inc(x_78); -lean_inc(x_77); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_39, 0); +x_134 = lean_ctor_get(x_39, 1); +lean_inc(x_134); +lean_inc(x_133); 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; +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 { -uint8_t x_80; +uint8_t x_136; lean_dec(x_35); -x_80 = !lean_is_exclusive(x_36); -if (x_80 == 0) +x_136 = !lean_is_exclusive(x_36); +if (x_136 == 0) { return x_36; } 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_inc(x_82); -lean_inc(x_81); +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_36, 0); +x_138 = lean_ctor_get(x_36, 1); +lean_inc(x_138); +lean_inc(x_137); 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; +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 { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_33); -if (x_84 == 0) +uint8_t x_140; +x_140 = !lean_is_exclusive(x_33); +if (x_140 == 0) { return x_33; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_33, 0); -x_86 = lean_ctor_get(x_33, 1); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_33, 0); +x_142 = lean_ctor_get(x_33, 1); +lean_inc(x_142); +lean_inc(x_141); lean_dec(x_33); -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_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_88; lean_object* x_89; -x_88 = l_Lean_Json_Parser_escapedChar___boxed__const__1; -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_1); -lean_ctor_set(x_89, 1, x_88); -return x_89; +lean_object* x_144; lean_object* x_145; +x_144 = l_Lean_Json_Parser_escapedChar___boxed__const__2; +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_1); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } else { -lean_object* x_90; lean_object* x_91; -x_90 = l_Lean_Json_Parser_escapedChar___boxed__const__2; -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_1); -lean_ctor_set(x_91, 1, x_90); -return x_91; +lean_object* x_146; lean_object* x_147; +x_146 = l_Lean_Json_Parser_escapedChar___boxed__const__3; +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_1); +lean_ctor_set(x_147, 1, x_146); +return x_147; } } else { -lean_object* x_92; lean_object* x_93; -x_92 = l_Lean_Json_Parser_escapedChar___boxed__const__3; -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_1); -lean_ctor_set(x_93, 1, x_92); -return x_93; +lean_object* x_148; lean_object* x_149; +x_148 = l_Lean_Json_Parser_escapedChar___boxed__const__4; +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_1); +lean_ctor_set(x_149, 1, x_148); +return x_149; } } else { -lean_object* x_94; lean_object* x_95; -x_94 = l_Lean_Json_Parser_escapedChar___boxed__const__4; -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_1); -lean_ctor_set(x_95, 1, x_94); -return x_95; +lean_object* x_150; lean_object* x_151; +x_150 = l_Lean_Json_Parser_escapedChar___boxed__const__5; +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_1); +lean_ctor_set(x_151, 1, x_150); +return x_151; } } else { -lean_object* x_96; lean_object* x_97; -x_96 = l_Lean_Json_Parser_escapedChar___boxed__const__5; -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_1); -lean_ctor_set(x_97, 1, x_96); -return x_97; +lean_object* x_152; lean_object* x_153; +x_152 = l_Lean_Json_Parser_escapedChar___boxed__const__6; +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_1); +lean_ctor_set(x_153, 1, x_152); +return x_153; } } else { -lean_object* x_98; lean_object* x_99; -x_98 = l_Lean_Json_Parser_escapedChar___boxed__const__6; -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_1); -lean_ctor_set(x_99, 1, x_98); -return x_99; +lean_object* x_154; lean_object* x_155; +x_154 = l_Lean_Json_Parser_escapedChar___boxed__const__7; +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_1); +lean_ctor_set(x_155, 1, x_154); +return x_155; } } else { -lean_object* x_100; lean_object* x_101; -x_100 = l_Lean_Json_Parser_escapedChar___boxed__const__7; -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_1); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_object* x_156; lean_object* x_157; +x_156 = l_Lean_Json_Parser_escapedChar___boxed__const__8; +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_1); +lean_ctor_set(x_157, 1, x_156); +return x_157; } } else { -lean_object* x_102; lean_object* x_103; -x_102 = l_Lean_Json_Parser_escapedChar___boxed__const__8; -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_1); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_object* x_158; lean_object* x_159; +x_158 = l_Lean_Json_Parser_escapedChar___boxed__const__9; +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_1); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } else { -uint32_t x_104; lean_object* x_105; lean_object* x_106; uint32_t x_107; uint8_t x_108; +uint32_t x_160; lean_object* x_161; lean_object* x_162; uint32_t x_163; uint8_t x_164; lean_dec(x_1); -x_104 = lean_string_utf8_get_fast(x_2, x_3); -x_105 = lean_string_utf8_next_fast(x_2, x_3); +x_160 = lean_string_utf8_get_fast(x_2, x_3); +x_161 = lean_string_utf8_next_fast(x_2, x_3); lean_dec(x_3); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_2); -lean_ctor_set(x_106, 1, x_105); -x_107 = 92; -x_108 = lean_uint32_dec_eq(x_104, x_107); -if (x_108 == 0) +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_2); +lean_ctor_set(x_162, 1, x_161); +x_163 = 92; +x_164 = lean_uint32_dec_eq(x_160, x_163); +if (x_164 == 0) { -uint32_t x_109; uint8_t x_110; -x_109 = 34; -x_110 = lean_uint32_dec_eq(x_104, x_109); -if (x_110 == 0) +uint32_t x_165; uint8_t x_166; +x_165 = 34; +x_166 = lean_uint32_dec_eq(x_160, x_165); +if (x_166 == 0) { -uint32_t x_111; uint8_t x_112; -x_111 = 47; -x_112 = lean_uint32_dec_eq(x_104, x_111); -if (x_112 == 0) +uint32_t x_167; uint8_t x_168; +x_167 = 47; +x_168 = lean_uint32_dec_eq(x_160, x_167); +if (x_168 == 0) { -uint32_t x_113; uint8_t x_114; -x_113 = 98; -x_114 = lean_uint32_dec_eq(x_104, x_113); -if (x_114 == 0) +uint32_t x_169; uint8_t x_170; +x_169 = 98; +x_170 = lean_uint32_dec_eq(x_160, x_169); +if (x_170 == 0) { -uint32_t x_115; uint8_t x_116; -x_115 = 102; -x_116 = lean_uint32_dec_eq(x_104, x_115); -if (x_116 == 0) +uint32_t x_171; uint8_t x_172; +x_171 = 102; +x_172 = lean_uint32_dec_eq(x_160, x_171); +if (x_172 == 0) { -uint32_t x_117; uint8_t x_118; -x_117 = 110; -x_118 = lean_uint32_dec_eq(x_104, x_117); -if (x_118 == 0) +uint32_t x_173; uint8_t x_174; +x_173 = 110; +x_174 = lean_uint32_dec_eq(x_160, x_173); +if (x_174 == 0) { -uint32_t x_119; uint8_t x_120; -x_119 = 114; -x_120 = lean_uint32_dec_eq(x_104, x_119); -if (x_120 == 0) +uint32_t x_175; uint8_t x_176; +x_175 = 114; +x_176 = lean_uint32_dec_eq(x_160, x_175); +if (x_176 == 0) { -uint32_t x_121; uint8_t x_122; -x_121 = 116; -x_122 = lean_uint32_dec_eq(x_104, x_121); -if (x_122 == 0) +uint32_t x_177; uint8_t x_178; +x_177 = 116; +x_178 = lean_uint32_dec_eq(x_160, x_177); +if (x_178 == 0) { -uint32_t x_123; uint8_t x_124; -x_123 = 117; -x_124 = lean_uint32_dec_eq(x_104, x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; -x_125 = l_Lean_Json_Parser_escapedChar___closed__1; -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_106); -lean_ctor_set(x_126, 1, x_125); -return x_126; -} -else -{ -lean_object* x_127; -x_127 = l_Lean_Json_Parser_hexChar(x_106); -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -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_Json_Parser_hexChar(x_128); -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_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); -x_133 = l_Lean_Json_Parser_hexChar(x_131); -if (lean_obj_tag(x_133) == 0) -{ -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_Json_Parser_hexChar(x_134); -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; 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; uint32_t x_150; lean_object* x_151; lean_object* x_152; -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_136); - x_139 = lean_box(0); -} -x_140 = lean_unsigned_to_nat(4096u); -x_141 = lean_nat_mul(x_140, x_129); -lean_dec(x_129); -x_142 = lean_unsigned_to_nat(256u); -x_143 = lean_nat_mul(x_142, x_132); -lean_dec(x_132); -x_144 = lean_nat_add(x_141, x_143); -lean_dec(x_143); -lean_dec(x_141); -x_145 = lean_unsigned_to_nat(16u); -x_146 = lean_nat_mul(x_145, x_135); -lean_dec(x_135); -x_147 = lean_nat_add(x_144, x_146); -lean_dec(x_146); -lean_dec(x_144); -x_148 = lean_nat_add(x_147, x_138); -lean_dec(x_138); -lean_dec(x_147); -x_149 = l_Char_ofNat(x_148); -lean_dec(x_148); -x_150 = lean_unbox_uint32(x_149); -lean_dec(x_149); -x_151 = lean_box_uint32(x_150); -if (lean_is_scalar(x_139)) { - x_152 = lean_alloc_ctor(0, 2, 0); -} else { - x_152 = x_139; -} -lean_ctor_set(x_152, 0, x_137); -lean_ctor_set(x_152, 1, x_151); -return x_152; -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_135); -lean_dec(x_132); -lean_dec(x_129); -x_153 = lean_ctor_get(x_136, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_136, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_155 = x_136; -} else { - lean_dec_ref(x_136); - 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_132); -lean_dec(x_129); -x_157 = lean_ctor_get(x_133, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_133, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_159 = x_133; -} else { - lean_dec_ref(x_133); - 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_129); -x_161 = lean_ctor_get(x_130, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_130, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_163 = x_130; -} else { - lean_dec_ref(x_130); - 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; -x_165 = lean_ctor_get(x_127, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_127, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_167 = x_127; -} else { - lean_dec_ref(x_127); - 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_169; lean_object* x_170; -x_169 = l_Lean_Json_Parser_escapedChar___boxed__const__1; -x_170 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_170, 0, x_106); -lean_ctor_set(x_170, 1, x_169); -return x_170; -} -} -else -{ -lean_object* x_171; lean_object* x_172; -x_171 = l_Lean_Json_Parser_escapedChar___boxed__const__2; -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_106); -lean_ctor_set(x_172, 1, x_171); -return x_172; -} -} -else -{ -lean_object* x_173; lean_object* x_174; -x_173 = l_Lean_Json_Parser_escapedChar___boxed__const__3; -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_106); -lean_ctor_set(x_174, 1, x_173); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; -x_175 = l_Lean_Json_Parser_escapedChar___boxed__const__4; -x_176 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_176, 0, x_106); -lean_ctor_set(x_176, 1, x_175); -return x_176; -} -} -else -{ -lean_object* x_177; lean_object* x_178; -x_177 = l_Lean_Json_Parser_escapedChar___boxed__const__5; -x_178 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_178, 0, x_106); -lean_ctor_set(x_178, 1, x_177); -return x_178; -} -} -else -{ -lean_object* x_179; lean_object* x_180; -x_179 = l_Lean_Json_Parser_escapedChar___boxed__const__6; -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_106); -lean_ctor_set(x_180, 1, x_179); -return x_180; -} -} -else +uint32_t x_179; uint8_t x_180; +x_179 = 117; +x_180 = lean_uint32_dec_eq(x_160, x_179); +if (x_180 == 0) { lean_object* x_181; lean_object* x_182; -x_181 = l_Lean_Json_Parser_escapedChar___boxed__const__7; -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_106); +x_181 = l_Lean_Json_Parser_escapedChar___closed__1; +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_162); lean_ctor_set(x_182, 1, x_181); return x_182; } +else +{ +lean_object* x_183; +x_183 = l_Lean_Json_Parser_hexChar(x_162); +if (lean_obj_tag(x_183) == 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_Json_Parser_hexChar(x_184); +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_Json_Parser_hexChar(x_187); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +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 = l_Lean_Json_Parser_hexChar(x_190); +if (lean_obj_tag(x_192) == 0) +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; uint16_t x_196; uint16_t x_197; uint16_t x_198; uint16_t x_199; uint16_t x_200; uint16_t x_201; uint16_t x_202; uint16_t x_203; uint16_t x_204; uint16_t x_205; uint16_t x_206; uint16_t x_207; uint16_t x_208; uint16_t x_209; uint8_t x_210; +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 = 12; +x_197 = lean_unbox(x_185); +lean_dec(x_185); +x_198 = lean_uint16_shift_left(x_197, x_196); +x_199 = 8; +x_200 = lean_unbox(x_188); +lean_dec(x_188); +x_201 = lean_uint16_shift_left(x_200, x_199); +x_202 = lean_uint16_lor(x_198, x_201); +x_203 = 4; +x_204 = lean_unbox(x_191); +lean_dec(x_191); +x_205 = lean_uint16_shift_left(x_204, x_203); +x_206 = lean_uint16_lor(x_202, x_205); +x_207 = lean_unbox(x_194); +lean_dec(x_194); +x_208 = lean_uint16_lor(x_206, x_207); +x_209 = 55296; +x_210 = lean_uint16_dec_lt(x_208, x_209); +if (x_210 == 0) +{ +uint16_t x_211; uint8_t x_212; +x_211 = 57344; +x_212 = lean_uint16_dec_lt(x_208, x_211); +if (x_212 == 0) +{ +uint32_t x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_uint16_to_uint32(x_208); +x_214 = lean_box_uint32(x_213); +if (lean_is_scalar(x_195)) { + x_215 = lean_alloc_ctor(0, 2, 0); +} else { + x_215 = x_195; +} +lean_ctor_set(x_215, 0, x_193); +lean_ctor_set(x_215, 1, x_214); +return x_215; } else { -lean_object* x_183; lean_object* x_184; -x_183 = l_Lean_Json_Parser_escapedChar___boxed__const__8; -x_184 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_184, 0, x_106); -lean_ctor_set(x_184, 1, x_183); -return x_184; +uint16_t x_216; uint8_t x_217; +x_216 = 56320; +x_217 = lean_uint16_dec_lt(x_208, x_216); +if (x_217 == 0) +{ +lean_object* x_218; lean_object* x_219; +x_218 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +if (lean_is_scalar(x_195)) { + x_219 = lean_alloc_ctor(0, 2, 0); +} else { + x_219 = x_195; +} +lean_ctor_set(x_219, 0, x_193); +lean_ctor_set(x_219, 1, x_218); +return x_219; +} +else +{ +lean_object* x_220; +lean_dec(x_195); +lean_inc(x_193); +x_220 = l_Lean_Json_Parser_finishSurrogatePair(x_208, x_193); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_193); +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_223 = x_220; +} else { + lean_dec_ref(x_220); + x_223 = lean_box(0); +} +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(0, 2, 0); +} else { + x_224 = x_223; +} +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; +x_225 = lean_ctor_get(x_220, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_226 = x_220; +} else { + lean_dec_ref(x_220); + x_226 = lean_box(0); +} +x_227 = lean_ctor_get(x_193, 1); +lean_inc(x_227); +x_228 = lean_nat_dec_eq(x_227, x_227); +lean_dec(x_227); +if (x_228 == 0) +{ +lean_object* x_229; +if (lean_is_scalar(x_226)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_226; +} +lean_ctor_set(x_229, 0, x_193); +lean_ctor_set(x_229, 1, x_225); +return x_229; +} +else +{ +lean_object* x_230; lean_object* x_231; +lean_dec(x_225); +x_230 = l_Lean_Json_Parser_escapedChar___boxed__const__1; +if (lean_is_scalar(x_226)) { + x_231 = lean_alloc_ctor(0, 2, 0); +} else { + x_231 = x_226; + lean_ctor_set_tag(x_231, 0); +} +lean_ctor_set(x_231, 0, x_193); +lean_ctor_set(x_231, 1, x_230); +return x_231; +} +} +} +} +} +else +{ +uint32_t x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_uint16_to_uint32(x_208); +x_233 = lean_box_uint32(x_232); +if (lean_is_scalar(x_195)) { + x_234 = lean_alloc_ctor(0, 2, 0); +} else { + x_234 = x_195; +} +lean_ctor_set(x_234, 0, x_193); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_191); +lean_dec(x_188); +lean_dec(x_185); +x_235 = lean_ctor_get(x_192, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_192, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_237 = x_192; +} else { + lean_dec_ref(x_192); + x_237 = lean_box(0); +} +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); +} else { + x_238 = x_237; +} +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_236); +return x_238; +} +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_188); +lean_dec(x_185); +x_239 = lean_ctor_get(x_189, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_189, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_241 = x_189; +} else { + lean_dec_ref(x_189); + x_241 = lean_box(0); +} +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); +return x_242; +} +} +else +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_185); +x_243 = lean_ctor_get(x_186, 0); +lean_inc(x_243); +x_244 = lean_ctor_get(x_186, 1); +lean_inc(x_244); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_245 = x_186; +} else { + lean_dec_ref(x_186); + 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_183, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_183, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_249 = x_183; +} else { + lean_dec_ref(x_183); + 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; +x_251 = l_Lean_Json_Parser_escapedChar___boxed__const__2; +x_252 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_252, 0, x_162); +lean_ctor_set(x_252, 1, x_251); +return x_252; +} +} +else +{ +lean_object* x_253; lean_object* x_254; +x_253 = l_Lean_Json_Parser_escapedChar___boxed__const__3; +x_254 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_254, 0, x_162); +lean_ctor_set(x_254, 1, x_253); +return x_254; +} +} +else +{ +lean_object* x_255; lean_object* x_256; +x_255 = l_Lean_Json_Parser_escapedChar___boxed__const__4; +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_162); +lean_ctor_set(x_256, 1, x_255); +return x_256; +} +} +else +{ +lean_object* x_257; lean_object* x_258; +x_257 = l_Lean_Json_Parser_escapedChar___boxed__const__5; +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_162); +lean_ctor_set(x_258, 1, x_257); +return x_258; +} +} +else +{ +lean_object* x_259; lean_object* x_260; +x_259 = l_Lean_Json_Parser_escapedChar___boxed__const__6; +x_260 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_260, 0, x_162); +lean_ctor_set(x_260, 1, x_259); +return x_260; +} +} +else +{ +lean_object* x_261; lean_object* x_262; +x_261 = l_Lean_Json_Parser_escapedChar___boxed__const__7; +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_162); +lean_ctor_set(x_262, 1, x_261); +return x_262; +} +} +else +{ +lean_object* x_263; lean_object* x_264; +x_263 = l_Lean_Json_Parser_escapedChar___boxed__const__8; +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_162); +lean_ctor_set(x_264, 1, x_263); +return x_264; +} +} +else +{ +lean_object* x_265; lean_object* x_266; +x_265 = l_Lean_Json_Parser_escapedChar___boxed__const__9; +x_266 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_266, 0, x_162); +lean_ctor_set(x_266, 1, x_265); +return x_266; } } } @@ -1500,19 +2483,11 @@ return x_69; } } } -static lean_object* _init_l_Lean_Json_Parser_str___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_Json_Parser_str(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Json_Parser_str___closed__1; +x_2 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; x_3 = l_Lean_Json_Parser_strCore(x_2, x_1); return x_3; } @@ -5316,7 +6291,7 @@ lean_dec(x_108); x_109 = lean_string_utf8_next_fast(x_2, x_3); lean_dec(x_3); lean_ctor_set(x_1, 1, x_109); -x_110 = l_Lean_Json_Parser_str___closed__1; +x_110 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; x_111 = l_Lean_Json_Parser_strCore(x_110, x_1); if (lean_obj_tag(x_111) == 0) { @@ -5383,7 +6358,7 @@ lean_dec(x_3); x_127 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_127, 0, x_2); lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_Json_Parser_str___closed__1; +x_128 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; x_129 = l_Lean_Json_Parser_strCore(x_128, x_127); if (lean_obj_tag(x_129) == 0) { @@ -6062,7 +7037,7 @@ lean_dec(x_16); x_17 = lean_string_utf8_next_fast(x_3, x_4); lean_dec(x_4); lean_ctor_set(x_2, 1, x_17); -x_18 = l_Lean_Json_Parser_str___closed__1; +x_18 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; x_19 = l_Lean_Json_Parser_strCore(x_18, x_2); if (lean_obj_tag(x_19) == 0) { @@ -6782,7 +7757,7 @@ lean_dec(x_4); x_189 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_189, 0, x_3); lean_ctor_set(x_189, 1, x_188); -x_190 = l_Lean_Json_Parser_str___closed__1; +x_190 = l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1; x_191 = l_Lean_Json_Parser_strCore(x_190, x_189); if (lean_obj_tag(x_191) == 0) { @@ -7179,6 +8154,8 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Json_Parser_hexChar___closed__1 = _init_l_Lean_Json_Parser_hexChar___closed__1(); lean_mark_persistent(l_Lean_Json_Parser_hexChar___closed__1); +l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1 = _init_l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Json_Parser_finishSurrogatePair___lambda__1___closed__1); l_Lean_Json_Parser_escapedChar___closed__1 = _init_l_Lean_Json_Parser_escapedChar___closed__1(); lean_mark_persistent(l_Lean_Json_Parser_escapedChar___closed__1); l_Lean_Json_Parser_escapedChar___boxed__const__1 = _init_l_Lean_Json_Parser_escapedChar___boxed__const__1(); @@ -7197,10 +8174,10 @@ l_Lean_Json_Parser_escapedChar___boxed__const__7 = _init_l_Lean_Json_Parser_esca lean_mark_persistent(l_Lean_Json_Parser_escapedChar___boxed__const__7); l_Lean_Json_Parser_escapedChar___boxed__const__8 = _init_l_Lean_Json_Parser_escapedChar___boxed__const__8(); lean_mark_persistent(l_Lean_Json_Parser_escapedChar___boxed__const__8); +l_Lean_Json_Parser_escapedChar___boxed__const__9 = _init_l_Lean_Json_Parser_escapedChar___boxed__const__9(); +lean_mark_persistent(l_Lean_Json_Parser_escapedChar___boxed__const__9); l_Lean_Json_Parser_strCore___closed__1 = _init_l_Lean_Json_Parser_strCore___closed__1(); lean_mark_persistent(l_Lean_Json_Parser_strCore___closed__1); -l_Lean_Json_Parser_str___closed__1 = _init_l_Lean_Json_Parser_str___closed__1(); -lean_mark_persistent(l_Lean_Json_Parser_str___closed__1); l_Lean_Json_Parser_lookahead___rarg___closed__1 = _init_l_Lean_Json_Parser_lookahead___rarg___closed__1(); lean_mark_persistent(l_Lean_Json_Parser_lookahead___rarg___closed__1); l_Lean_Json_Parser_natNonZero___closed__1 = _init_l_Lean_Json_Parser_natNonZero___closed__1(); diff --git a/stage0/stdlib/Lean/Declaration.c b/stage0/stdlib/Lean/Declaration.c index a528f17c22..cc2e1e71da 100644 --- a/stage0/stdlib/Lean/Declaration.c +++ b/stage0/stdlib/Lean/Declaration.c @@ -5317,7 +5317,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_Declaration_definitionVal_x21___closed__1; x_2 = l_Lean_ConstantInfo_inductiveVal_x21___closed__1; -x_3 = lean_unsigned_to_nat(513u); +x_3 = lean_unsigned_to_nat(514u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_ConstantInfo_inductiveVal_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Elab/BuiltinCommand.c b/stage0/stdlib/Lean/Elab/BuiltinCommand.c index 3a7cb02e83..14471f4f30 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinCommand.c +++ b/stage0/stdlib/Lean/Elab/BuiltinCommand.c @@ -606,6 +606,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinComma static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable_declRange__1___closed__6; +uint8_t l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___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___regBuiltin_Lean_Elab_Command_elabNonComputableSection_declRange__1___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice__1___closed__4; @@ -1109,7 +1110,6 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen__1(lean_objec LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___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_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___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*); -uint8_t l_List_beq___at___private_Lean_Data_OpenDecl_0__Lean_beqOpenDecl____x40_Lean_Data_OpenDecl___hyg_41____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__37; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEoi_declRange__1___closed__6; @@ -1164,7 +1164,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_B LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere_describeOpenDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Elab_Command_elabOmit___spec__15___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope___closed__1; -lean_object* l_List_toString___at_Lean_OpenDecl_instToString___spec__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabReduce___closed__2; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1212,6 +1211,7 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Elab_Command_elabOm static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6; LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toString___at_Lean_Environment_AddConstAsyncResult_commitConst___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption___lambda__1(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_OpenDecl_elabOpenDecl___spec__52(size_t, size_t, lean_object*); @@ -9335,7 +9335,7 @@ lean_inc(x_20); lean_ctor_set_tag(x_16, 1); lean_ctor_set(x_16, 1, x_21); lean_ctor_set(x_16, 0, x_20); -x_22 = l_List_beq___at___private_Lean_Data_OpenDecl_0__Lean_beqOpenDecl____x40_Lean_Data_OpenDecl___hyg_41____spec__1(x_14, x_16); +x_22 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_14, x_16); lean_dec(x_16); if (x_22 == 0) { @@ -9389,7 +9389,7 @@ lean_inc(x_33); 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_36 = l_List_beq___at___private_Lean_Data_OpenDecl_0__Lean_beqOpenDecl____x40_Lean_Data_OpenDecl___hyg_41____spec__1(x_14, x_35); +x_36 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_14, x_35); lean_dec(x_35); if (x_36 == 0) { @@ -10589,7 +10589,7 @@ x_14 = lean_string_append(x_13, x_12); lean_dec(x_12); x_15 = l_Lean_resolveUniqueNamespace___at_Lean_Elab_Command_elabOpen___spec__3___closed__2; x_16 = lean_string_append(x_14, x_15); -x_17 = l_List_toString___at_Lean_OpenDecl_instToString___spec__1(x_7); +x_17 = l_List_toString___at_Lean_Environment_AddConstAsyncResult_commitConst___spec__1(x_7); x_18 = lean_string_append(x_16, x_17); lean_dec(x_17); x_19 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__4___closed__3; @@ -10655,7 +10655,7 @@ x_37 = lean_string_append(x_36, x_35); lean_dec(x_35); x_38 = l_Lean_resolveUniqueNamespace___at_Lean_Elab_Command_elabOpen___spec__3___closed__2; x_39 = lean_string_append(x_37, x_38); -x_40 = l_List_toString___at_Lean_OpenDecl_instToString___spec__1(x_7); +x_40 = l_List_toString___at_Lean_Environment_AddConstAsyncResult_commitConst___spec__1(x_7); x_41 = lean_string_append(x_39, x_40); lean_dec(x_40); x_42 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__4___closed__3; @@ -34903,7 +34903,7 @@ if (lean_is_exclusive(x_13)) { lean_dec_ref(x_13); x_20 = lean_box(0); } -x_110 = l_List_beq___at___private_Lean_Data_OpenDecl_0__Lean_beqOpenDecl____x40_Lean_Data_OpenDecl___hyg_41____spec__1(x_19, x_2); +x_110 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_19, x_2); if (x_110 == 0) { uint8_t x_111; uint8_t x_112; diff --git a/stage0/stdlib/Lean/Elab/BuiltinEvalCommand.c b/stage0/stdlib/Lean/Elab/BuiltinEvalCommand.c index 89d19287b1..27de6f7d08 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinEvalCommand.c +++ b/stage0/stdlib/Lean/Elab/BuiltinEvalCommand.c @@ -63,7 +63,6 @@ lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, l lean_object* lean_get_set_stdout(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1; -lean_object* l_Lean_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6; @@ -262,6 +261,7 @@ static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Comman static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6; lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1; +lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalBang(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13; @@ -2749,7 +2749,7 @@ x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); x_13 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2; -x_14 = l_Lean_CollectAxioms_collect(x_1, x_12, x_13); +x_14 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_12, x_13); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); @@ -2771,7 +2771,7 @@ x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); lean_dec(x_17); x_20 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2; -x_21 = l_Lean_CollectAxioms_collect(x_1, x_19, x_20); +x_21 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_19, x_20); x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); lean_dec(x_21); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 906201b773..58ea6dafb9 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -67,6 +67,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedS static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkAllDeclNamesDistinct___spec__3(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instFVarIdSetInhabited; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___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_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_getFVars___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,6 +132,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_Mutua double lean_float_div(double, double); 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_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_collectUsed___spec__3___boxed(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_MutualDef___hyg_18177_(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*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__7; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -155,6 +157,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_processDeriving(lean_obj lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__13___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*); size_t lean_uint64_to_usize(uint64_t); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__4; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_MutualDef___hyg_5693____closed__3; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1___closed__7; 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___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -194,6 +197,7 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWher lean_object* l_Lean_LocalDecl_replaceFVarId(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_getMessageLog___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabMutualDef_go___closed__1; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__3; size_t lean_usize_mul(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___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_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -233,7 +237,6 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWher static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12___lambda__4___closed__14; static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__10___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync___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*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__2; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__3___boxed(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__13___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -313,7 +316,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMu 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*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_collectUsed___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_collectUsed___spec__6(lean_object*, lean_object*, size_t, size_t); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_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*, lean_object*, lean_object*); static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3; @@ -368,7 +370,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_clean 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_object*, 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*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__5; LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_AsyncBodyInfo_toCtorIdx___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*); @@ -378,6 +379,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_logGo LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process(lean_object*, 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_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4___boxed__const__1; uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___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__13___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*); @@ -495,6 +497,7 @@ lean_object* lean_replace_expr(lean_object*, lean_object*); lean_object* l_Lean_Syntax_eqWithInfoAndTraceReuse(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_setUserName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__5___lambda__1___boxed(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(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*); LEAN_EXPORT lean_object* l_Lean_Elab_instantiateMVarsProfiling(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -503,9 +506,7 @@ static lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_Mu static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_getFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___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_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___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*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___rarg___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, size_t, lean_object*); @@ -838,6 +839,7 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__L LEAN_EXPORT lean_object* l_Lean_Meta_withAuxDecl___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___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_Expr_appFn_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___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_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__6; 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*); static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__13___lambda__10___closed__1; lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); @@ -926,7 +928,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withH 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_Lean_withTraceNode___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__3___boxed(lean_object**); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__6; 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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object*); @@ -937,6 +938,7 @@ static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_M static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__13___lambda__11(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*); +static lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_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*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4; static lean_object* l_Lean_Elab_Term_instImpl____x40_Lean_Elab_MutualDef___hyg_12568____closed__1; @@ -1020,7 +1022,6 @@ lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__2(lean_object*, LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___lambda__5(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand_go___spec__9(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*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__1; 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*); lean_object* l_Lean_Meta_getFVarLocalDecl(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___rarg(lean_object*, lean_object*); @@ -1039,6 +1040,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_M 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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureFor___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_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7(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___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*); static lean_object* l_Lean_Elab_Command_elabMutualDef___closed__5; @@ -1205,7 +1207,6 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0 LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___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___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_object* l_List_reverse___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944_(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_MutualDef___hyg_5693____closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__8(lean_object*, lean_object*, lean_object*, size_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*); static lean_object* l_Lean_Elab_instantiateMVarsProfiling___closed__2; @@ -1231,7 +1232,7 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_processDefDeriving___spec__5( 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_elabFunValues___spec__13___lambda__3___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___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_Term_elabMutualDef_finishElab___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*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__2; @@ -1262,6 +1263,7 @@ LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_E static lean_object* l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__2___closed__2; static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___lambda__4___closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__7; 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*); static lean_object* l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___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*); @@ -1318,11 +1320,12 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_M static lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__5___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___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_elabMutualDef_finishElab___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_Term_elabMutualDef_finishElab___lambda__3(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*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__10___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_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_object*, lean_object*); static lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__12___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__8; static lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___closed__2; 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; @@ -1378,6 +1381,7 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfN 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_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_fold___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_nat_add(lean_object*, lean_object*); @@ -1397,6 +1401,7 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at___private_Lean_Elab_MutualDef LEAN_EXPORT lean_object* l_Lean_withTraceNode___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__2(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_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___rarg___boxed__const__1; LEAN_EXPORT lean_object* l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12___lambda__4___closed__10; lean_object* l_Lean_CollectFVars_State_add(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*); @@ -1413,16 +1418,17 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Mutual static double l_Lean_withTraceNode___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__4___closed__4; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__3___closed__3; static lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__12___closed__4; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkBodyInfo(lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__8___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__7; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_logGoalsAccomplishedSnapshotTask___spec__8(lean_object*, size_t, size_t); lean_object* l_Lean_RBTree_union___rarg(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*); lean_object* l_Lean_Elab_Term_expandWhereDecls(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__5; lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___hyg_5____closed__2; LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__13___lambda__6(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*); @@ -1450,6 +1456,7 @@ static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_M static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_logGoalsAccomplishedSnapshotTask___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___lambda__4(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___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_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1; static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5; size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesForBuiltin___at_Lean_Elab_Term_elabMutualDef_go___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*); @@ -1473,7 +1480,6 @@ LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Lean_Elab_Term_MutualClosure_ins static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__14___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_hasExprMVar(lean_object*); -static lean_object* l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2; 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_Linter_logLint___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*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -47575,6 +47581,1239 @@ return x_48; } } } +static lean_object* _init_l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_MutualClosure_main___closed__2; +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_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_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; +x_22 = lean_st_ref_get(x_7, x_8); +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_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get_uint8(x_25, sizeof(void*)*9); +lean_dec(x_25); +x_27 = lean_st_ref_get(x_7, x_24); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_st_ref_take(x_7, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; 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_30, 0); +x_34 = lean_ctor_get(x_30, 4); +lean_dec(x_34); +x_35 = 0; +x_36 = l_Lean_Environment_setExporting(x_33, x_35); +x_37 = l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1; +lean_ctor_set(x_30, 4, x_37); +lean_ctor_set(x_30, 0, x_36); +x_38 = lean_st_ref_set(x_7, x_30, x_31); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_st_ref_take(x_5, x_39); +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_is_exclusive(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; +x_44 = lean_ctor_get(x_41, 1); +lean_dec(x_44); +x_45 = l_Lean_Elab_Term_MutualClosure_main___closed__3; +lean_ctor_set(x_41, 1, x_45); +x_46 = lean_st_ref_set(x_5, x_41, x_42); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +lean_inc(x_7); +lean_inc(x_5); +x_48 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_47); +if (lean_obj_tag(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; +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_take(x_7, 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); +lean_dec(x_51); +x_54 = !lean_is_exclusive(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; uint8_t x_61; +x_55 = lean_ctor_get(x_52, 0); +x_56 = lean_ctor_get(x_52, 4); +lean_dec(x_56); +x_57 = l_Lean_Environment_setExporting(x_55, x_26); +lean_ctor_set(x_52, 4, x_37); +lean_ctor_set(x_52, 0, x_57); +x_58 = lean_st_ref_set(x_7, x_52, x_53); +lean_dec(x_7); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_st_ref_take(x_5, x_59); +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; uint8_t x_63; +x_62 = lean_ctor_get(x_60, 0); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_64 = lean_ctor_get(x_60, 1); +x_65 = lean_ctor_get(x_62, 1); +lean_dec(x_65); +lean_ctor_set(x_62, 1, x_45); +x_66 = lean_st_ref_set(x_5, x_62, x_64); +lean_dec(x_5); +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_66, 0); +lean_dec(x_68); +x_69 = lean_box(0); +lean_ctor_set(x_60, 1, x_69); +lean_ctor_set(x_60, 0, x_49); +lean_ctor_set(x_66, 0, x_60); +x_9 = x_66; +goto block_21; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +lean_dec(x_66); +x_71 = lean_box(0); +lean_ctor_set(x_60, 1, x_71); +lean_ctor_set(x_60, 0, x_49); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_60); +lean_ctor_set(x_72, 1, x_70); +x_9 = x_72; +goto block_21; +} +} +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_60, 1); +x_74 = lean_ctor_get(x_62, 0); +x_75 = lean_ctor_get(x_62, 2); +x_76 = lean_ctor_get(x_62, 3); +x_77 = lean_ctor_get(x_62, 4); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_78, 0, x_74); +lean_ctor_set(x_78, 1, x_45); +lean_ctor_set(x_78, 2, x_75); +lean_ctor_set(x_78, 3, x_76); +lean_ctor_set(x_78, 4, x_77); +x_79 = lean_st_ref_set(x_5, x_78, x_73); +lean_dec(x_5); +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); +lean_ctor_set(x_60, 1, x_82); +lean_ctor_set(x_60, 0, x_49); +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_60); +lean_ctor_set(x_83, 1, x_80); +x_9 = x_83; +goto block_21; +} +} +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_object* x_97; +x_84 = lean_ctor_get(x_60, 0); +x_85 = lean_ctor_get(x_60, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_60); +x_86 = lean_ctor_get(x_84, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_84, 2); +lean_inc(x_87); +x_88 = lean_ctor_get(x_84, 3); +lean_inc(x_88); +x_89 = lean_ctor_get(x_84, 4); +lean_inc(x_89); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + lean_ctor_release(x_84, 3); + lean_ctor_release(x_84, 4); + x_90 = x_84; +} else { + lean_dec_ref(x_84); + x_90 = lean_box(0); +} +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(0, 5, 0); +} else { + x_91 = x_90; +} +lean_ctor_set(x_91, 0, x_86); +lean_ctor_set(x_91, 1, x_45); +lean_ctor_set(x_91, 2, x_87); +lean_ctor_set(x_91, 3, x_88); +lean_ctor_set(x_91, 4, x_89); +x_92 = lean_st_ref_set(x_5, x_91, x_85); +lean_dec(x_5); +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; +} else { + lean_dec_ref(x_92); + x_94 = lean_box(0); +} +x_95 = lean_box(0); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_49); +lean_ctor_set(x_96, 1, x_95); +if (lean_is_scalar(x_94)) { + x_97 = 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); +x_9 = x_97; +goto block_21; +} +} +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; 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_98 = lean_ctor_get(x_52, 0); +x_99 = lean_ctor_get(x_52, 1); +x_100 = lean_ctor_get(x_52, 2); +x_101 = lean_ctor_get(x_52, 3); +x_102 = lean_ctor_get(x_52, 5); +x_103 = lean_ctor_get(x_52, 6); +x_104 = lean_ctor_get(x_52, 7); +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_dec(x_52); +x_105 = l_Lean_Environment_setExporting(x_98, x_26); +x_106 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_99); +lean_ctor_set(x_106, 2, x_100); +lean_ctor_set(x_106, 3, x_101); +lean_ctor_set(x_106, 4, x_37); +lean_ctor_set(x_106, 5, x_102); +lean_ctor_set(x_106, 6, x_103); +lean_ctor_set(x_106, 7, x_104); +x_107 = lean_st_ref_set(x_7, x_106, x_53); +lean_dec(x_7); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_5, 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); +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 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 2); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 3); +lean_inc(x_115); +x_116 = lean_ctor_get(x_110, 4); +lean_inc(x_116); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + lean_ctor_release(x_110, 4); + x_117 = x_110; +} else { + lean_dec_ref(x_110); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(0, 5, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_113); +lean_ctor_set(x_118, 1, x_45); +lean_ctor_set(x_118, 2, x_114); +lean_ctor_set(x_118, 3, x_115); +lean_ctor_set(x_118, 4, x_116); +x_119 = lean_st_ref_set(x_5, x_118, x_111); +lean_dec(x_5); +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_122 = lean_box(0); +if (lean_is_scalar(x_112)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_112; +} +lean_ctor_set(x_123, 0, x_49); +lean_ctor_set(x_123, 1, x_122); +if (lean_is_scalar(x_121)) { + x_124 = lean_alloc_ctor(0, 2, 0); +} else { + x_124 = x_121; +} +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_120); +x_9 = x_124; +goto block_21; +} +} +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; +x_125 = lean_ctor_get(x_48, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_48, 1); +lean_inc(x_126); +lean_dec(x_48); +x_127 = lean_st_ref_take(x_7, x_126); +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_is_exclusive(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; uint8_t x_139; +x_131 = lean_ctor_get(x_128, 0); +x_132 = lean_ctor_get(x_128, 4); +lean_dec(x_132); +x_133 = l_Lean_Environment_setExporting(x_131, x_26); +lean_ctor_set(x_128, 4, x_37); +lean_ctor_set(x_128, 0, x_133); +x_134 = lean_st_ref_set(x_7, x_128, x_129); +lean_dec(x_7); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec(x_134); +x_136 = lean_st_ref_take(x_5, x_135); +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 = !lean_is_exclusive(x_137); +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; uint8_t x_142; +x_140 = lean_ctor_get(x_137, 1); +lean_dec(x_140); +lean_ctor_set(x_137, 1, x_45); +x_141 = lean_st_ref_set(x_5, x_137, x_138); +lean_dec(x_5); +x_142 = !lean_is_exclusive(x_141); +if (x_142 == 0) +{ +lean_object* x_143; +x_143 = lean_ctor_get(x_141, 0); +lean_dec(x_143); +lean_ctor_set_tag(x_141, 1); +lean_ctor_set(x_141, 0, x_125); +x_9 = x_141; +goto block_21; +} +else +{ +lean_object* x_144; lean_object* x_145; +x_144 = lean_ctor_get(x_141, 1); +lean_inc(x_144); +lean_dec(x_141); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_125); +lean_ctor_set(x_145, 1, x_144); +x_9 = x_145; +goto block_21; +} +} +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; +x_146 = lean_ctor_get(x_137, 0); +x_147 = lean_ctor_get(x_137, 2); +x_148 = lean_ctor_get(x_137, 3); +x_149 = lean_ctor_get(x_137, 4); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_137); +x_150 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_45); +lean_ctor_set(x_150, 2, x_147); +lean_ctor_set(x_150, 3, x_148); +lean_ctor_set(x_150, 4, x_149); +x_151 = lean_st_ref_set(x_5, x_150, x_138); +lean_dec(x_5); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_153 = x_151; +} else { + lean_dec_ref(x_151); + x_153 = lean_box(0); +} +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_153; + lean_ctor_set_tag(x_154, 1); +} +lean_ctor_set(x_154, 0, x_125); +lean_ctor_set(x_154, 1, x_152); +x_9 = x_154; +goto block_21; +} +} +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_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_155 = lean_ctor_get(x_128, 0); +x_156 = lean_ctor_get(x_128, 1); +x_157 = lean_ctor_get(x_128, 2); +x_158 = lean_ctor_get(x_128, 3); +x_159 = lean_ctor_get(x_128, 5); +x_160 = lean_ctor_get(x_128, 6); +x_161 = lean_ctor_get(x_128, 7); +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_128); +x_162 = l_Lean_Environment_setExporting(x_155, x_26); +x_163 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_156); +lean_ctor_set(x_163, 2, x_157); +lean_ctor_set(x_163, 3, x_158); +lean_ctor_set(x_163, 4, x_37); +lean_ctor_set(x_163, 5, x_159); +lean_ctor_set(x_163, 6, x_160); +lean_ctor_set(x_163, 7, x_161); +x_164 = lean_st_ref_set(x_7, x_163, x_129); +lean_dec(x_7); +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +lean_dec(x_164); +x_166 = lean_st_ref_take(x_5, 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); +lean_dec(x_166); +x_169 = lean_ctor_get(x_167, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_167, 3); +lean_inc(x_171); +x_172 = lean_ctor_get(x_167, 4); +lean_inc(x_172); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + lean_ctor_release(x_167, 2); + lean_ctor_release(x_167, 3); + lean_ctor_release(x_167, 4); + 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(0, 5, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_169); +lean_ctor_set(x_174, 1, x_45); +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_168); +lean_dec(x_5); +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_125); +lean_ctor_set(x_178, 1, x_176); +x_9 = x_178; +goto block_21; +} +} +} +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; +x_179 = lean_ctor_get(x_41, 0); +x_180 = lean_ctor_get(x_41, 2); +x_181 = lean_ctor_get(x_41, 3); +x_182 = lean_ctor_get(x_41, 4); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_41); +x_183 = l_Lean_Elab_Term_MutualClosure_main___closed__3; +x_184 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_184, 0, x_179); +lean_ctor_set(x_184, 1, x_183); +lean_ctor_set(x_184, 2, x_180); +lean_ctor_set(x_184, 3, x_181); +lean_ctor_set(x_184, 4, x_182); +x_185 = lean_st_ref_set(x_5, x_184, x_42); +x_186 = lean_ctor_get(x_185, 1); +lean_inc(x_186); +lean_dec(x_185); +lean_inc(x_7); +lean_inc(x_5); +x_187 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_186); +if (lean_obj_tag(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; 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; +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 = lean_st_ref_take(x_7, x_189); +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 = lean_ctor_get(x_191, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_191, 1); +lean_inc(x_194); +x_195 = lean_ctor_get(x_191, 2); +lean_inc(x_195); +x_196 = lean_ctor_get(x_191, 3); +lean_inc(x_196); +x_197 = lean_ctor_get(x_191, 5); +lean_inc(x_197); +x_198 = lean_ctor_get(x_191, 6); +lean_inc(x_198); +x_199 = lean_ctor_get(x_191, 7); +lean_inc(x_199); +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); + lean_ctor_release(x_191, 7); + x_200 = x_191; +} else { + lean_dec_ref(x_191); + x_200 = lean_box(0); +} +x_201 = l_Lean_Environment_setExporting(x_193, x_26); +if (lean_is_scalar(x_200)) { + x_202 = lean_alloc_ctor(0, 8, 0); +} else { + x_202 = x_200; +} +lean_ctor_set(x_202, 0, x_201); +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_37); +lean_ctor_set(x_202, 5, x_197); +lean_ctor_set(x_202, 6, x_198); +lean_ctor_set(x_202, 7, x_199); +x_203 = lean_st_ref_set(x_7, x_202, x_192); +lean_dec(x_7); +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +lean_dec(x_203); +x_205 = lean_st_ref_take(x_5, x_204); +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, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_206, 2); +lean_inc(x_210); +x_211 = lean_ctor_get(x_206, 3); +lean_inc(x_211); +x_212 = lean_ctor_get(x_206, 4); +lean_inc(x_212); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + lean_ctor_release(x_206, 4); + x_213 = x_206; +} else { + lean_dec_ref(x_206); + x_213 = lean_box(0); +} +if (lean_is_scalar(x_213)) { + x_214 = lean_alloc_ctor(0, 5, 0); +} else { + x_214 = x_213; +} +lean_ctor_set(x_214, 0, x_209); +lean_ctor_set(x_214, 1, x_183); +lean_ctor_set(x_214, 2, x_210); +lean_ctor_set(x_214, 3, x_211); +lean_ctor_set(x_214, 4, x_212); +x_215 = lean_st_ref_set(x_5, x_214, x_207); +lean_dec(x_5); +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_208)) { + x_219 = lean_alloc_ctor(0, 2, 0); +} else { + x_219 = x_208; +} +lean_ctor_set(x_219, 0, x_188); +lean_ctor_set(x_219, 1, 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); +x_9 = x_220; +goto block_21; +} +else +{ +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; +x_221 = lean_ctor_get(x_187, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_187, 1); +lean_inc(x_222); +lean_dec(x_187); +x_223 = lean_st_ref_take(x_7, 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 = 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, 5); +lean_inc(x_230); +x_231 = lean_ctor_get(x_224, 6); +lean_inc(x_231); +x_232 = lean_ctor_get(x_224, 7); +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); + lean_ctor_release(x_224, 7); + x_233 = x_224; +} else { + lean_dec_ref(x_224); + x_233 = lean_box(0); +} +x_234 = l_Lean_Environment_setExporting(x_226, x_26); +if (lean_is_scalar(x_233)) { + x_235 = lean_alloc_ctor(0, 8, 0); +} else { + x_235 = x_233; +} +lean_ctor_set(x_235, 0, x_234); +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_37); +lean_ctor_set(x_235, 5, x_230); +lean_ctor_set(x_235, 6, x_231); +lean_ctor_set(x_235, 7, x_232); +x_236 = lean_st_ref_set(x_7, x_235, x_225); +lean_dec(x_7); +x_237 = lean_ctor_get(x_236, 1); +lean_inc(x_237); +lean_dec(x_236); +x_238 = lean_st_ref_take(x_5, 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 = lean_ctor_get(x_239, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_239, 2); +lean_inc(x_242); +x_243 = lean_ctor_get(x_239, 3); +lean_inc(x_243); +x_244 = lean_ctor_get(x_239, 4); +lean_inc(x_244); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + lean_ctor_release(x_239, 2); + lean_ctor_release(x_239, 3); + lean_ctor_release(x_239, 4); + x_245 = x_239; +} else { + lean_dec_ref(x_239); + x_245 = lean_box(0); +} +if (lean_is_scalar(x_245)) { + x_246 = lean_alloc_ctor(0, 5, 0); +} else { + x_246 = x_245; +} +lean_ctor_set(x_246, 0, x_241); +lean_ctor_set(x_246, 1, x_183); +lean_ctor_set(x_246, 2, x_242); +lean_ctor_set(x_246, 3, x_243); +lean_ctor_set(x_246, 4, x_244); +x_247 = lean_st_ref_set(x_5, x_246, x_240); +lean_dec(x_5); +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); +} +if (lean_is_scalar(x_249)) { + x_250 = lean_alloc_ctor(1, 2, 0); +} else { + x_250 = x_249; + lean_ctor_set_tag(x_250, 1); +} +lean_ctor_set(x_250, 0, x_221); +lean_ctor_set(x_250, 1, x_248); +x_9 = x_250; +goto block_21; +} +} +} +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; uint8_t 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; +x_251 = lean_ctor_get(x_30, 0); +x_252 = lean_ctor_get(x_30, 1); +x_253 = lean_ctor_get(x_30, 2); +x_254 = lean_ctor_get(x_30, 3); +x_255 = lean_ctor_get(x_30, 5); +x_256 = lean_ctor_get(x_30, 6); +x_257 = lean_ctor_get(x_30, 7); +lean_inc(x_257); +lean_inc(x_256); +lean_inc(x_255); +lean_inc(x_254); +lean_inc(x_253); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_30); +x_258 = 0; +x_259 = l_Lean_Environment_setExporting(x_251, x_258); +x_260 = l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1; +x_261 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_252); +lean_ctor_set(x_261, 2, x_253); +lean_ctor_set(x_261, 3, x_254); +lean_ctor_set(x_261, 4, x_260); +lean_ctor_set(x_261, 5, x_255); +lean_ctor_set(x_261, 6, x_256); +lean_ctor_set(x_261, 7, x_257); +x_262 = lean_st_ref_set(x_7, x_261, x_31); +x_263 = lean_ctor_get(x_262, 1); +lean_inc(x_263); +lean_dec(x_262); +x_264 = lean_st_ref_take(x_5, x_263); +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +lean_dec(x_264); +x_267 = lean_ctor_get(x_265, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_265, 2); +lean_inc(x_268); +x_269 = lean_ctor_get(x_265, 3); +lean_inc(x_269); +x_270 = lean_ctor_get(x_265, 4); +lean_inc(x_270); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + lean_ctor_release(x_265, 2); + lean_ctor_release(x_265, 3); + lean_ctor_release(x_265, 4); + x_271 = x_265; +} else { + lean_dec_ref(x_265); + x_271 = lean_box(0); +} +x_272 = l_Lean_Elab_Term_MutualClosure_main___closed__3; +if (lean_is_scalar(x_271)) { + x_273 = lean_alloc_ctor(0, 5, 0); +} else { + x_273 = x_271; +} +lean_ctor_set(x_273, 0, x_267); +lean_ctor_set(x_273, 1, x_272); +lean_ctor_set(x_273, 2, x_268); +lean_ctor_set(x_273, 3, x_269); +lean_ctor_set(x_273, 4, x_270); +x_274 = lean_st_ref_set(x_5, x_273, x_266); +x_275 = lean_ctor_get(x_274, 1); +lean_inc(x_275); +lean_dec(x_274); +lean_inc(x_7); +lean_inc(x_5); +x_276 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_275); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; 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; +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_st_ref_take(x_7, x_278); +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_279, 1); +lean_inc(x_281); +lean_dec(x_279); +x_282 = lean_ctor_get(x_280, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_280, 1); +lean_inc(x_283); +x_284 = lean_ctor_get(x_280, 2); +lean_inc(x_284); +x_285 = lean_ctor_get(x_280, 3); +lean_inc(x_285); +x_286 = lean_ctor_get(x_280, 5); +lean_inc(x_286); +x_287 = lean_ctor_get(x_280, 6); +lean_inc(x_287); +x_288 = lean_ctor_get(x_280, 7); +lean_inc(x_288); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + lean_ctor_release(x_280, 2); + lean_ctor_release(x_280, 3); + lean_ctor_release(x_280, 4); + lean_ctor_release(x_280, 5); + lean_ctor_release(x_280, 6); + lean_ctor_release(x_280, 7); + x_289 = x_280; +} else { + lean_dec_ref(x_280); + x_289 = lean_box(0); +} +x_290 = l_Lean_Environment_setExporting(x_282, x_26); +if (lean_is_scalar(x_289)) { + x_291 = lean_alloc_ctor(0, 8, 0); +} else { + x_291 = x_289; +} +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_283); +lean_ctor_set(x_291, 2, x_284); +lean_ctor_set(x_291, 3, x_285); +lean_ctor_set(x_291, 4, x_260); +lean_ctor_set(x_291, 5, x_286); +lean_ctor_set(x_291, 6, x_287); +lean_ctor_set(x_291, 7, x_288); +x_292 = lean_st_ref_set(x_7, x_291, x_281); +lean_dec(x_7); +x_293 = lean_ctor_get(x_292, 1); +lean_inc(x_293); +lean_dec(x_292); +x_294 = lean_st_ref_take(x_5, x_293); +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); +} +x_298 = lean_ctor_get(x_295, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_295, 2); +lean_inc(x_299); +x_300 = lean_ctor_get(x_295, 3); +lean_inc(x_300); +x_301 = lean_ctor_get(x_295, 4); +lean_inc(x_301); +if (lean_is_exclusive(x_295)) { + lean_ctor_release(x_295, 0); + lean_ctor_release(x_295, 1); + lean_ctor_release(x_295, 2); + lean_ctor_release(x_295, 3); + lean_ctor_release(x_295, 4); + x_302 = x_295; +} else { + lean_dec_ref(x_295); + x_302 = lean_box(0); +} +if (lean_is_scalar(x_302)) { + x_303 = lean_alloc_ctor(0, 5, 0); +} else { + x_303 = x_302; +} +lean_ctor_set(x_303, 0, x_298); +lean_ctor_set(x_303, 1, x_272); +lean_ctor_set(x_303, 2, x_299); +lean_ctor_set(x_303, 3, x_300); +lean_ctor_set(x_303, 4, x_301); +x_304 = lean_st_ref_set(x_5, x_303, x_296); +lean_dec(x_5); +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_297)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_297; +} +lean_ctor_set(x_308, 0, x_277); +lean_ctor_set(x_308, 1, x_307); +if (lean_is_scalar(x_306)) { + x_309 = lean_alloc_ctor(0, 2, 0); +} else { + x_309 = x_306; +} +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_305); +x_9 = x_309; +goto block_21; +} +else +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; 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; +x_310 = lean_ctor_get(x_276, 0); +lean_inc(x_310); +x_311 = lean_ctor_get(x_276, 1); +lean_inc(x_311); +lean_dec(x_276); +x_312 = lean_st_ref_take(x_7, x_311); +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 = lean_ctor_get(x_313, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_313, 1); +lean_inc(x_316); +x_317 = lean_ctor_get(x_313, 2); +lean_inc(x_317); +x_318 = lean_ctor_get(x_313, 3); +lean_inc(x_318); +x_319 = lean_ctor_get(x_313, 5); +lean_inc(x_319); +x_320 = lean_ctor_get(x_313, 6); +lean_inc(x_320); +x_321 = lean_ctor_get(x_313, 7); +lean_inc(x_321); +if (lean_is_exclusive(x_313)) { + lean_ctor_release(x_313, 0); + lean_ctor_release(x_313, 1); + lean_ctor_release(x_313, 2); + lean_ctor_release(x_313, 3); + lean_ctor_release(x_313, 4); + lean_ctor_release(x_313, 5); + lean_ctor_release(x_313, 6); + lean_ctor_release(x_313, 7); + x_322 = x_313; +} else { + lean_dec_ref(x_313); + x_322 = lean_box(0); +} +x_323 = l_Lean_Environment_setExporting(x_315, x_26); +if (lean_is_scalar(x_322)) { + x_324 = lean_alloc_ctor(0, 8, 0); +} else { + x_324 = x_322; +} +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_316); +lean_ctor_set(x_324, 2, x_317); +lean_ctor_set(x_324, 3, x_318); +lean_ctor_set(x_324, 4, x_260); +lean_ctor_set(x_324, 5, x_319); +lean_ctor_set(x_324, 6, x_320); +lean_ctor_set(x_324, 7, x_321); +x_325 = lean_st_ref_set(x_7, x_324, x_314); +lean_dec(x_7); +x_326 = lean_ctor_get(x_325, 1); +lean_inc(x_326); +lean_dec(x_325); +x_327 = lean_st_ref_take(x_5, x_326); +x_328 = lean_ctor_get(x_327, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_327, 1); +lean_inc(x_329); +lean_dec(x_327); +x_330 = lean_ctor_get(x_328, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_328, 2); +lean_inc(x_331); +x_332 = lean_ctor_get(x_328, 3); +lean_inc(x_332); +x_333 = lean_ctor_get(x_328, 4); +lean_inc(x_333); +if (lean_is_exclusive(x_328)) { + lean_ctor_release(x_328, 0); + lean_ctor_release(x_328, 1); + lean_ctor_release(x_328, 2); + lean_ctor_release(x_328, 3); + lean_ctor_release(x_328, 4); + x_334 = x_328; +} else { + lean_dec_ref(x_328); + x_334 = lean_box(0); +} +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(0, 5, 0); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_330); +lean_ctor_set(x_335, 1, x_272); +lean_ctor_set(x_335, 2, x_331); +lean_ctor_set(x_335, 3, x_332); +lean_ctor_set(x_335, 4, x_333); +x_336 = lean_st_ref_set(x_5, x_335, x_329); +lean_dec(x_5); +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); +} +if (lean_is_scalar(x_338)) { + x_339 = lean_alloc_ctor(1, 2, 0); +} else { + x_339 = x_338; + lean_ctor_set_tag(x_339, 1); +} +lean_ctor_set(x_339, 0, x_310); +lean_ctor_set(x_339, 1, x_337); +x_9 = x_339; +goto block_21; +} +} +block_21: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +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_9); +if (x_17 == 0) +{ +return x_9; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* 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 = 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_Elab_Term_elabMutualDef_finishElab___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { @@ -48058,315 +49297,348 @@ return x_56; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___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_Term_elabMutualDef_finishElab___lambda__3(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_object* x_15, lean_object* x_16) { _start: { -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_19; -x_13 = lean_array_get_size(x_5); -x_14 = lean_unsigned_to_nat(0u); -lean_inc(x_5); -x_15 = l_Array_toSubarray___rarg(x_5, x_14, x_13); -x_16 = lean_box(0); -x_17 = lean_array_size(x_1); -x_18 = 0; +lean_object* 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_8); -lean_inc(x_7); -lean_inc(x_6); -x_19 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__1(x_1, x_16, x_1, x_17, x_18, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_19) == 0) +x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__1(x_1, x_2, x_1, x_3, x_4, x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_44; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_21 = x_19; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_42; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_19 = x_17; } else { - lean_dec_ref(x_19); - x_21 = lean_box(0); + lean_dec_ref(x_17); + x_19 = 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); -lean_inc(x_7); lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_44 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -if (lean_obj_tag(x_44) == 0) +x_42 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_18); +if (lean_obj_tag(x_42) == 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_43; lean_object* x_44; uint8_t x_45; uint8_t 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 = 1; +x_46 = 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); -lean_inc(x_7); -lean_inc(x_6); -x_49 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_47, x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -if (lean_obj_tag(x_49) == 0) +x_47 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_45, x_46, x_10, x_11, x_12, x_13, x_14, x_15, x_44); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_50; size_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = lean_array_size(x_45); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_52 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__2(x_51, x_18, x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_50); -if (lean_obj_tag(x_52) == 0) +lean_object* x_48; size_t x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_array_size(x_43); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_50 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__2(x_49, x_4, x_43, x_10, x_11, x_12, x_13, x_14, x_15, x_48); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_21); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_19); +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_Elab_Term_elabMutualDef_finishElab___lambda__2(x_6, x_4, x_7, x_2, x_8, x_9, x_51, x_10, x_11, x_12, x_13, x_14, x_15, x_52); +lean_dec(x_9); +lean_dec(x_8); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_50, 0); lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__2(x_2, x_18, x_5, x_16, x_3, x_4, x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_54); -lean_dec(x_4); -lean_dec(x_3); -return x_55; +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +lean_dec(x_50); +x_20 = x_54; +x_21 = x_55; +goto block_41; +} } else { lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_52, 0); +lean_dec(x_43); +x_56 = lean_ctor_get(x_47, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_52, 1); +x_57 = lean_ctor_get(x_47, 1); lean_inc(x_57); -lean_dec(x_52); -x_22 = x_56; -x_23 = x_57; -goto block_43; +lean_dec(x_47); +x_20 = x_56; +x_21 = x_57; +goto block_41; } } else { lean_object* x_58; lean_object* x_59; -lean_dec(x_45); -x_58 = lean_ctor_get(x_49, 0); +x_58 = lean_ctor_get(x_42, 0); lean_inc(x_58); -x_59 = lean_ctor_get(x_49, 1); +x_59 = lean_ctor_get(x_42, 1); lean_inc(x_59); -lean_dec(x_49); -x_22 = x_58; -x_23 = x_59; -goto block_43; +lean_dec(x_42); +x_20 = x_58; +x_21 = x_59; +goto block_41; } +block_41: +{ +uint8_t x_22; +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; +lean_dec(x_19); +lean_inc(x_14); +x_24 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; size_t x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_array_size(x_6); +lean_inc(x_15); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_6); +x_27 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__6(x_26, x_4, x_6, x_10, x_11, x_12, x_13, x_14, x_15, x_25); +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); +x_30 = l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__2(x_6, x_4, x_7, x_2, x_8, x_9, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +lean_dec(x_9); +lean_dec(x_8); +return x_30; } else { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_44, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_44, 1); -lean_inc(x_61); -lean_dec(x_44); -x_22 = x_60; -x_23 = x_61; -goto block_43; -} -block_43: -{ -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) -{ -lean_object* x_26; -lean_dec(x_21); -lean_inc(x_10); -x_26 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_23); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; size_t x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_array_size(x_2); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_2); -x_29 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__6(x_28, x_18, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_27); -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_Lean_Elab_Term_elabMutualDef_finishElab___lambda__2(x_2, x_18, x_5, x_16, x_3, x_4, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_31); -lean_dec(x_4); -lean_dec(x_3); -return x_32; -} -else -{ -uint8_t x_33; +uint8_t x_31; +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_3); lean_dec(x_2); -x_33 = !lean_is_exclusive(x_29); -if (x_33 == 0) +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) { -return x_29; +return x_27; } 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; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -uint8_t x_37; +uint8_t x_35; +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_3); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_26); -if (x_37 == 0) +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) { -return x_26; +return x_24; } else { -lean_object* x_38; lean_object* x_39; lean_object* 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 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +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_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_2); +if (lean_is_scalar(x_19)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_19; + lean_ctor_set_tag(x_39, 1); +} +lean_ctor_set(x_39, 0, x_20); +lean_ctor_set(x_39, 1, x_21); +return x_39; +} +} +else +{ +lean_object* x_40; +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_2); +if (lean_is_scalar(x_19)) { + x_40 = lean_alloc_ctor(1, 2, 0); +} else { + x_40 = x_19; + lean_ctor_set_tag(x_40, 1); +} +lean_ctor_set(x_40, 0, x_20); +lean_ctor_set(x_40, 1, x_21); return x_40; } } } else { -lean_object* x_41; +uint8_t x_60; +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_3); lean_dec(x_2); -if (lean_is_scalar(x_21)) { - x_41 = lean_alloc_ctor(1, 2, 0); -} else { - x_41 = x_21; - lean_ctor_set_tag(x_41, 1); -} -lean_ctor_set(x_41, 0, x_22); -lean_ctor_set(x_41, 1, x_23); -return x_41; -} +x_60 = !lean_is_exclusive(x_17); +if (x_60 == 0) +{ +return x_17; } else { -lean_object* x_42; -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_21)) { - x_42 = lean_alloc_ctor(1, 2, 0); -} else { - x_42 = x_21; - lean_ctor_set_tag(x_42, 1); -} -lean_ctor_set(x_42, 0, x_22); -lean_ctor_set(x_42, 1, x_23); -return x_42; +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); +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 +} +static lean_object* _init_l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4___boxed__const__1() { +_start: { -uint8_t 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_is_exclusive(x_19); -if (x_62 == 0) +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_Elab_Term_elabMutualDef_finishElab___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: { -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; -} -} +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* 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_array_get_size(x_5); +x_14 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +x_15 = l_Array_toSubarray___rarg(x_5, x_14, x_13); +x_16 = lean_box(0); +x_17 = lean_array_size(x_1); +x_18 = lean_box_usize(x_17); +x_19 = l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4___boxed__const__1; +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__3___boxed), 16, 9); +lean_closure_set(x_20, 0, x_1); +lean_closure_set(x_20, 1, x_16); +lean_closure_set(x_20, 2, x_18); +lean_closure_set(x_20, 3, x_19); +lean_closure_set(x_20, 4, x_15); +lean_closure_set(x_20, 5, x_2); +lean_closure_set(x_20, 6, x_5); +lean_closure_set(x_20, 7, x_3); +lean_closure_set(x_20, 8, x_4); +x_21 = l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_21; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -48374,7 +49646,7 @@ _start: { lean_object* x_12; lean_object* x_13; lean_inc(x_4); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__3___boxed), 12, 4); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4), 12, 4); lean_closure_set(x_12, 0, x_3); lean_closure_set(x_12, 1, x_4); lean_closure_set(x_12, 2, x_1); @@ -48503,13 +49775,17 @@ lean_dec(x_5); return x_16; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___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) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_finishElab___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_13; -x_13 = l_Lean_Elab_Term_elabMutualDef_finishElab___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); +size_t x_17; size_t x_18; lean_object* x_19; +x_17 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_18 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_19 = l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__3(x_1, x_2, x_17, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_1); -return x_13; +return x_19; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_elabSync(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -49225,328 +50501,324 @@ return x_6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync___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; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_13 = lean_ctor_get(x_1, 1); +lean_object* x_13; uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_1, 5); lean_inc(x_13); -lean_dec(x_1); -x_14 = lean_ctor_get(x_13, 5); -lean_inc(x_14); -x_15 = 0; +x_14 = 0; +x_15 = 1; x_16 = 1; -x_17 = 1; -x_18 = l_Lean_Meta_mkForallFVars(x_5, x_14, x_15, x_16, x_17, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_18) == 0) +x_17 = l_Lean_Meta_mkForallFVars(x_5, x_13, x_14, x_15, x_16, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(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; -x_19 = lean_ctor_get(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; +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); -x_21 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(x_2); -x_22 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Term_levelMVarToParam___boxed), 9, 2); -lean_closure_set(x_23, 0, x_19); -lean_closure_set(x_23, 1, x_22); +lean_dec(x_17); +x_20 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(x_2); +x_21 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Term_levelMVarToParam___boxed), 9, 2); +lean_closure_set(x_22, 0, x_18); +lean_closure_set(x_22, 1, x_21); 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_21); -x_24 = l_Lean_Elab_Term_withLevelNames___rarg(x_21, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -if (lean_obj_tag(x_24) == 0) +lean_inc(x_20); +x_23 = l_Lean_Elab_Term_withLevelNames___rarg(x_20, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +if (lean_obj_tag(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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_25 = lean_ctor_get(x_24, 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; uint8_t x_34; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_26); +lean_dec(x_23); +x_26 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_25); lean_dec(x_6); -x_28 = lean_ctor_get(x_27, 0); +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); -x_30 = lean_array_mk(x_3); -x_31 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_getFVars___closed__3; -x_32 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_31); -lean_ctor_set(x_32, 2, x_30); -lean_inc(x_28); -x_33 = l_Lean_CollectLevelParams_main(x_28, x_32); -x_34 = l_Lean_Elab_Term_getLevelNames___rarg(x_7, x_8, x_9, x_10, x_11, x_29); +lean_dec(x_26); +x_29 = lean_array_mk(x_3); +x_30 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars_getFVars___closed__3; +x_31 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_31, 2, x_29); +lean_inc(x_27); +x_32 = l_Lean_CollectLevelParams_main(x_27, x_31); +x_33 = l_Lean_Elab_Term_getLevelNames___rarg(x_7, x_8, x_9, x_10, x_11, x_28); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 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_34, 0); -x_37 = lean_ctor_get(x_34, 1); -x_38 = lean_ctor_get(x_33, 2); -lean_inc(x_38); -lean_dec(x_33); -x_39 = l_Lean_Elab_sortDeclLevelParams(x_36, x_21, x_38); -x_40 = lean_ctor_get(x_10, 5); -lean_inc(x_40); +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_33, 0); +x_36 = lean_ctor_get(x_33, 1); +x_37 = lean_ctor_get(x_32, 2); +lean_inc(x_37); +lean_dec(x_32); +x_38 = l_Lean_Elab_sortDeclLevelParams(x_35, x_20, x_37); +x_39 = lean_ctor_get(x_10, 5); +lean_inc(x_39); lean_dec(x_10); -x_41 = l_IO_ofExcept___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__1(x_39, x_37); -if (lean_obj_tag(x_41) == 0) +x_40 = l_IO_ofExcept___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__1(x_38, x_36); +if (lean_obj_tag(x_40) == 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_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); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_ctor_get(x_13, 1); -lean_inc(x_44); -lean_dec(x_13); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_42); -lean_ctor_set(x_45, 2, x_28); -x_46 = l_Lean_Environment_AddConstAsyncResult_commitSignature(x_4, x_45, x_43); -if (lean_obj_tag(x_46) == 0) -{ -uint8_t x_47; lean_dec(x_40); -lean_free_object(x_34); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +x_43 = lean_ctor_get(x_1, 1); +lean_inc(x_43); +lean_dec(x_1); +x_44 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_41); +lean_ctor_set(x_44, 2, x_27); +x_45 = l_Lean_Environment_AddConstAsyncResult_commitSignature(x_4, x_44, x_42); +if (lean_obj_tag(x_45) == 0) { -return x_46; +uint8_t x_46; +lean_dec(x_39); +lean_free_object(x_33); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +return x_45; } 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_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_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_inc(x_47); +lean_dec(x_45); +x_49 = lean_alloc_ctor(0, 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_51; -x_51 = !lean_is_exclusive(x_46); -if (x_51 == 0) +uint8_t x_50; +x_50 = !lean_is_exclusive(x_45); +if (x_50 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_46, 0); -x_53 = lean_io_error_to_string(x_52); -x_54 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_54, 0, x_53); -x_55 = l_Lean_MessageData_ofFormat(x_54); -lean_ctor_set(x_34, 1, x_55); -lean_ctor_set(x_34, 0, x_40); -lean_ctor_set(x_46, 0, x_34); -return x_46; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_io_error_to_string(x_51); +x_53 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_53, 0, x_52); +x_54 = l_Lean_MessageData_ofFormat(x_53); +lean_ctor_set(x_33, 1, x_54); +lean_ctor_set(x_33, 0, x_39); +lean_ctor_set(x_45, 0, x_33); +return x_45; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_56 = lean_ctor_get(x_46, 0); -x_57 = lean_ctor_get(x_46, 1); -lean_inc(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; +x_55 = lean_ctor_get(x_45, 0); +x_56 = lean_ctor_get(x_45, 1); lean_inc(x_56); -lean_dec(x_46); -x_58 = lean_io_error_to_string(x_56); -x_59 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = l_Lean_MessageData_ofFormat(x_59); -lean_ctor_set(x_34, 1, x_60); -lean_ctor_set(x_34, 0, x_40); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_34); -lean_ctor_set(x_61, 1, x_57); -return x_61; +lean_inc(x_55); +lean_dec(x_45); +x_57 = lean_io_error_to_string(x_55); +x_58 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_MessageData_ofFormat(x_58); +lean_ctor_set(x_33, 1, x_59); +lean_ctor_set(x_33, 0, x_39); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_33); +lean_ctor_set(x_60, 1, x_56); +return x_60; } } } else { -uint8_t x_62; -lean_dec(x_28); -lean_dec(x_13); +uint8_t x_61; +lean_dec(x_27); lean_dec(x_4); -x_62 = !lean_is_exclusive(x_41); -if (x_62 == 0) +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_40); +if (x_61 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_41, 0); -x_64 = lean_io_error_to_string(x_63); -x_65 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = l_Lean_MessageData_ofFormat(x_65); -lean_ctor_set(x_34, 1, x_66); -lean_ctor_set(x_34, 0, x_40); -lean_ctor_set(x_41, 0, x_34); -return x_41; +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_40, 0); +x_63 = lean_io_error_to_string(x_62); +x_64 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_64, 0, x_63); +x_65 = l_Lean_MessageData_ofFormat(x_64); +lean_ctor_set(x_33, 1, x_65); +lean_ctor_set(x_33, 0, x_39); +lean_ctor_set(x_40, 0, x_33); +return x_40; } 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_41, 0); -x_68 = lean_ctor_get(x_41, 1); -lean_inc(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; +x_66 = lean_ctor_get(x_40, 0); +x_67 = lean_ctor_get(x_40, 1); lean_inc(x_67); -lean_dec(x_41); -x_69 = lean_io_error_to_string(x_67); -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_ctor_set(x_34, 1, x_71); -lean_ctor_set(x_34, 0, x_40); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_34); -lean_ctor_set(x_72, 1, x_68); -return x_72; +lean_inc(x_66); +lean_dec(x_40); +x_68 = lean_io_error_to_string(x_66); +x_69 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = l_Lean_MessageData_ofFormat(x_69); +lean_ctor_set(x_33, 1, x_70); +lean_ctor_set(x_33, 0, x_39); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_33); +lean_ctor_set(x_71, 1, x_67); +return x_71; } } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_34, 0); -x_74 = lean_ctor_get(x_34, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get(x_33, 0); +x_73 = lean_ctor_get(x_33, 1); lean_inc(x_73); -lean_dec(x_34); -x_75 = lean_ctor_get(x_33, 2); -lean_inc(x_75); +lean_inc(x_72); lean_dec(x_33); -x_76 = l_Lean_Elab_sortDeclLevelParams(x_73, x_21, x_75); -x_77 = lean_ctor_get(x_10, 5); -lean_inc(x_77); +x_74 = lean_ctor_get(x_32, 2); +lean_inc(x_74); +lean_dec(x_32); +x_75 = l_Lean_Elab_sortDeclLevelParams(x_72, x_20, x_74); +x_76 = lean_ctor_get(x_10, 5); +lean_inc(x_76); lean_dec(x_10); -x_78 = l_IO_ofExcept___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__1(x_76, x_74); -if (lean_obj_tag(x_78) == 0) +x_77 = l_IO_ofExcept___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__1(x_75, x_73); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -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; +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); -lean_dec(x_78); -x_81 = lean_ctor_get(x_13, 1); -lean_inc(x_81); -lean_dec(x_13); -x_82 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_79); -lean_ctor_set(x_82, 2, x_28); -x_83 = l_Lean_Environment_AddConstAsyncResult_commitSignature(x_4, x_82, x_80); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_dec(x_77); -x_84 = lean_ctor_get(x_83, 0); +x_80 = lean_ctor_get(x_1, 1); +lean_inc(x_80); +lean_dec(x_1); +x_81 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_78); +lean_ctor_set(x_81, 2, x_27); +x_82 = l_Lean_Environment_AddConstAsyncResult_commitSignature(x_4, x_81, x_79); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_76); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); 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; +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_83); - x_86 = lean_box(0); + lean_dec_ref(x_82); + x_85 = lean_box(0); } -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 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_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 = lean_ctor_get(x_83, 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; +x_87 = lean_ctor_get(x_82, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_82, 1); 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; +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_89 = x_82; } else { - lean_dec_ref(x_83); - x_90 = lean_box(0); + lean_dec_ref(x_82); + x_89 = lean_box(0); } -x_91 = lean_io_error_to_string(x_88); -x_92 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_92, 0, x_91); -x_93 = l_Lean_MessageData_ofFormat(x_92); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_77); -lean_ctor_set(x_94, 1, x_93); -if (lean_is_scalar(x_90)) { - x_95 = lean_alloc_ctor(1, 2, 0); +x_90 = lean_io_error_to_string(x_87); +x_91 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_91, 0, x_90); +x_92 = l_Lean_MessageData_ofFormat(x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_76); +lean_ctor_set(x_93, 1, x_92); +if (lean_is_scalar(x_89)) { + x_94 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_90; + x_94 = x_89; } -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_89); -return x_95; +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_88); +return x_94; } } 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_dec(x_28); -lean_dec(x_13); +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_dec(x_27); lean_dec(x_4); -x_96 = lean_ctor_get(x_78, 0); +lean_dec(x_1); +x_95 = lean_ctor_get(x_77, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_77, 1); lean_inc(x_96); -x_97 = lean_ctor_get(x_78, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_98 = x_78; +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_78); - x_98 = lean_box(0); + lean_dec_ref(x_77); + x_97 = lean_box(0); } -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); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_77); -lean_ctor_set(x_102, 1, x_101); -if (lean_is_scalar(x_98)) { - x_103 = lean_alloc_ctor(1, 2, 0); +x_98 = lean_io_error_to_string(x_95); +x_99 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = l_Lean_MessageData_ofFormat(x_99); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_76); +lean_ctor_set(x_101, 1, x_100); +if (lean_is_scalar(x_97)) { + x_102 = lean_alloc_ctor(1, 2, 0); } else { - x_103 = x_98; + x_102 = x_97; } -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_97); -return x_103; +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_96); +return x_102; } } } else { -uint8_t x_104; -lean_dec(x_21); -lean_dec(x_13); +uint8_t x_103; +lean_dec(x_20); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -49555,30 +50827,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_104 = !lean_is_exclusive(x_24); -if (x_104 == 0) +lean_dec(x_1); +x_103 = !lean_is_exclusive(x_23); +if (x_103 == 0) { -return x_24; +return x_23; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_24, 0); -x_106 = lean_ctor_get(x_24, 1); -lean_inc(x_106); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_23, 0); +x_105 = lean_ctor_get(x_23, 1); lean_inc(x_105); -lean_dec(x_24); -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_inc(x_104); +lean_dec(x_23); +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_108; -lean_dec(x_13); +uint8_t x_107; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -49587,23 +50859,24 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_108 = !lean_is_exclusive(x_18); -if (x_108 == 0) +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_17); +if (x_107 == 0) { -return x_18; +return x_17; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_18, 0); -x_110 = lean_ctor_get(x_18, 1); -lean_inc(x_110); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_17, 0); +x_109 = lean_ctor_get(x_17, 1); lean_inc(x_109); -lean_dec(x_18); -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; +lean_inc(x_108); +lean_dec(x_17); +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; } } } @@ -51651,2304 +52924,2154 @@ x_1 = lean_mk_string_unchecked("elaborating proof of ", 21, 21); return x_1; } } +static lean_object* _init_l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("rfl", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_elabMutualDef_elabAsync___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_Term_elabMutualDef_elabAsync___closed__2; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_elabAsync(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 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_593; lean_object* x_594; x_14 = lean_st_ref_get(x_12, x_13); -x_15 = !lean_is_exclusive(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; uint8_t x_21; uint8_t x_22; lean_object* x_23; +x_15 = lean_ctor_get(x_4, 0); +lean_inc(x_15); x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); x_17 = lean_ctor_get(x_14, 1); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); +lean_inc(x_17); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_18 = x_14; +} else { + lean_dec_ref(x_14); + x_18 = lean_box(0); +} +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); lean_dec(x_16); -x_19 = lean_ctor_get(x_6, 1); -lean_inc(x_19); -lean_dec(x_6); -x_20 = lean_ctor_get(x_11, 5); +x_20 = lean_ctor_get(x_4, 1); lean_inc(x_20); -x_21 = 1; -x_22 = 1; -lean_inc(x_19); -x_23 = l_Lean_Environment_addConstAsync(x_18, x_19, x_21, x_21, x_22, x_22, x_17); -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; -lean_dec(x_20); -lean_free_object(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); -x_26 = lean_ctor_get(x_24, 0); +x_21 = lean_ctor_get(x_4, 2); +lean_inc(x_21); +x_22 = lean_ctor_get(x_4, 3); +lean_inc(x_22); +x_23 = lean_ctor_get(x_15, 6); +lean_inc(x_23); +x_24 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4; +lean_inc(x_23); +x_25 = l_Lean_Syntax_isOfKind(x_23, x_24); +x_26 = lean_ctor_get(x_6, 1); lean_inc(x_26); -x_27 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__2(x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_25); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_27, 1); -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -x_31 = lean_box(0); -lean_inc(x_4); -lean_ctor_set_tag(x_27, 1); -lean_ctor_set(x_27, 1, x_31); -lean_ctor_set(x_27, 0, x_4); -x_32 = lean_array_mk(x_27); -lean_inc(x_24); -lean_inc(x_32); -lean_inc(x_4); -x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__1___boxed), 12, 4); -lean_closure_set(x_33, 0, x_4); -lean_closure_set(x_33, 1, x_32); -lean_closure_set(x_33, 2, x_31); -lean_closure_set(x_33, 3, x_24); -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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars___rarg(x_1, x_2, x_32, x_33, x_7, x_8, x_9, x_10, x_11, x_12, x_29); -lean_dec(x_32); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_35, 2); -lean_inc(x_36); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = !lean_is_exclusive(x_4); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_4, 0); -lean_dec(x_39); -x_40 = !lean_is_exclusive(x_35); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_35, 6); -x_42 = lean_ctor_get(x_35, 2); -lean_dec(x_42); -x_43 = !lean_is_exclusive(x_36); -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; lean_object* x_55; uint8_t x_56; -x_44 = lean_ctor_get(x_36, 2); -lean_dec(x_44); -x_45 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; -lean_ctor_set(x_36, 2, x_45); -lean_inc(x_41); -x_46 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_37); -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_io_promise_new(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_st_ref_take(x_12, x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_53, 6); -lean_inc(x_54); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = !lean_is_exclusive(x_53); -if (x_56 == 0) -{ -lean_object* x_57; uint8_t x_58; -x_57 = lean_ctor_get(x_53, 6); -lean_dec(x_57); -x_58 = !lean_is_exclusive(x_54); -if (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; 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; uint8_t x_96; lean_object* x_97; -x_59 = lean_ctor_get(x_54, 1); -x_60 = lean_ctor_get(x_54, 2); -x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_61, 0, x_31); -x_62 = lean_io_promise_result_opt(x_50); -x_63 = l_Task_Priority_default; -x_64 = lean_task_map(x_61, x_62, x_63, x_22); -lean_inc(x_47); -x_65 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_59, x_47, x_64); -x_66 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_66, 0, x_47); -x_67 = l_Lean_PersistentArray_push___rarg(x_60, x_66); -lean_ctor_set(x_54, 2, x_67); -lean_ctor_set(x_54, 1, x_65); -x_68 = lean_st_ref_set(x_12, x_53, x_55); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec(x_68); -x_70 = l_IO_CancelToken_new(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); -lean_inc(x_19); -x_73 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_73, 0, x_24); -lean_closure_set(x_73, 1, x_4); -lean_closure_set(x_73, 2, x_31); -lean_closure_set(x_73, 3, x_1); -lean_closure_set(x_73, 4, x_2); -lean_closure_set(x_73, 5, x_3); -lean_closure_set(x_73, 6, x_41); -lean_closure_set(x_73, 7, x_50); -lean_closure_set(x_73, 8, x_19); -x_74 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_74, 0, x_71); -x_75 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_76 = l_Lean_Name_toString(x_19, x_22, x_75); -x_77 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_78 = lean_string_append(x_77, x_76); -lean_dec(x_76); -x_79 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_80 = lean_string_append(x_78, x_79); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_74); -x_81 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_73, x_74, x_80, x_7, x_8, x_9, x_10, x_11, x_12, x_72); -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_box(0); -x_85 = lean_apply_1(x_82, x_84); -x_86 = lean_io_as_task(x_85, x_63, 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); -x_89 = lean_box(0); -x_90 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_91 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -lean_ctor_set(x_91, 2, x_74); -lean_ctor_set(x_91, 3, x_87); -x_92 = l_Lean_Core_logSnapshotTask(x_91, x_11, x_12, x_88); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -lean_dec(x_92); -x_94 = lean_ctor_get(x_5, 2); -lean_inc(x_94); -lean_dec(x_5); -x_95 = lean_ctor_get(x_94, 2); -lean_inc(x_95); -lean_dec(x_94); -x_96 = 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_95); -lean_inc(x_19); -x_97 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_95, x_96, x_7, x_8, x_9, x_10, x_11, x_12, x_93); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; uint8_t x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = 1; -x_100 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_95, x_99, x_7, x_8, x_9, x_10, x_11, x_12, x_98); -return x_100; -} -else -{ -uint8_t x_101; -lean_dec(x_95); -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); -x_101 = !lean_is_exclusive(x_97); -if (x_101 == 0) -{ -return x_97; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_97, 0); -x_103 = lean_ctor_get(x_97, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_97); -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_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; 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; -x_105 = lean_ctor_get_uint8(x_54, sizeof(void*)*3); -x_106 = lean_ctor_get(x_54, 0); -x_107 = lean_ctor_get(x_54, 1); -x_108 = lean_ctor_get(x_54, 2); -lean_inc(x_108); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_54); -x_109 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_109, 0, x_31); -x_110 = lean_io_promise_result_opt(x_50); -x_111 = l_Task_Priority_default; -x_112 = lean_task_map(x_109, x_110, x_111, x_22); -lean_inc(x_47); -x_113 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_107, x_47, x_112); -x_114 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_114, 0, x_47); -x_115 = l_Lean_PersistentArray_push___rarg(x_108, x_114); -x_116 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_116, 0, x_106); -lean_ctor_set(x_116, 1, x_113); -lean_ctor_set(x_116, 2, x_115); -lean_ctor_set_uint8(x_116, sizeof(void*)*3, x_105); -lean_ctor_set(x_53, 6, x_116); -x_117 = lean_st_ref_set(x_12, x_53, x_55); -x_118 = lean_ctor_get(x_117, 1); -lean_inc(x_118); -lean_dec(x_117); -x_119 = l_IO_CancelToken_new(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_119); -lean_inc(x_19); -x_122 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_122, 0, x_24); -lean_closure_set(x_122, 1, x_4); -lean_closure_set(x_122, 2, x_31); -lean_closure_set(x_122, 3, x_1); -lean_closure_set(x_122, 4, x_2); -lean_closure_set(x_122, 5, x_3); -lean_closure_set(x_122, 6, x_41); -lean_closure_set(x_122, 7, x_50); -lean_closure_set(x_122, 8, x_19); -x_123 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_123, 0, x_120); -x_124 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_125 = l_Lean_Name_toString(x_19, x_22, x_124); -x_126 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_127 = lean_string_append(x_126, x_125); -lean_dec(x_125); -x_128 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_129 = lean_string_append(x_127, x_128); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_123); -x_130 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_122, x_123, x_129, x_7, x_8, x_9, x_10, x_11, x_12, x_121); -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_box(0); -x_134 = lean_apply_1(x_131, x_133); -x_135 = lean_io_as_task(x_134, x_111, x_132); -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 = lean_box(0); -x_139 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_140 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -lean_ctor_set(x_140, 2, x_123); -lean_ctor_set(x_140, 3, x_136); -x_141 = l_Lean_Core_logSnapshotTask(x_140, x_11, x_12, x_137); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -lean_dec(x_141); -x_143 = lean_ctor_get(x_5, 2); -lean_inc(x_143); -lean_dec(x_5); -x_144 = lean_ctor_get(x_143, 2); -lean_inc(x_144); -lean_dec(x_143); -x_145 = 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_144); -lean_inc(x_19); -x_146 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_144, x_145, x_7, x_8, x_9, x_10, x_11, x_12, x_142); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; uint8_t x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -lean_dec(x_146); -x_148 = 1; -x_149 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_144, x_148, x_7, x_8, x_9, x_10, x_11, x_12, x_147); -return x_149; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_144); -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); -x_150 = lean_ctor_get(x_146, 0); -lean_inc(x_150); -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_146); - x_152 = lean_box(0); -} -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); -} else { - x_153 = x_152; -} -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -return x_153; -} -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 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; -x_154 = lean_ctor_get(x_53, 0); -x_155 = lean_ctor_get(x_53, 1); -x_156 = lean_ctor_get(x_53, 2); -x_157 = lean_ctor_get(x_53, 3); -x_158 = lean_ctor_get(x_53, 4); -x_159 = lean_ctor_get(x_53, 5); -x_160 = lean_ctor_get(x_53, 7); -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_inc(x_154); -lean_dec(x_53); -x_161 = lean_ctor_get_uint8(x_54, sizeof(void*)*3); -x_162 = lean_ctor_get(x_54, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_54, 1); -lean_inc(x_163); -x_164 = lean_ctor_get(x_54, 2); -lean_inc(x_164); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - lean_ctor_release(x_54, 2); - x_165 = x_54; -} else { - lean_dec_ref(x_54); - x_165 = lean_box(0); -} -x_166 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_166, 0, x_31); -x_167 = lean_io_promise_result_opt(x_50); -x_168 = l_Task_Priority_default; -x_169 = lean_task_map(x_166, x_167, x_168, x_22); -lean_inc(x_47); -x_170 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_163, x_47, x_169); -x_171 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_171, 0, x_47); -x_172 = l_Lean_PersistentArray_push___rarg(x_164, x_171); -if (lean_is_scalar(x_165)) { - x_173 = lean_alloc_ctor(0, 3, 1); -} else { - x_173 = x_165; -} -lean_ctor_set(x_173, 0, x_162); -lean_ctor_set(x_173, 1, x_170); -lean_ctor_set(x_173, 2, x_172); -lean_ctor_set_uint8(x_173, sizeof(void*)*3, x_161); -x_174 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_174, 0, x_154); -lean_ctor_set(x_174, 1, x_155); -lean_ctor_set(x_174, 2, x_156); -lean_ctor_set(x_174, 3, x_157); -lean_ctor_set(x_174, 4, x_158); -lean_ctor_set(x_174, 5, x_159); -lean_ctor_set(x_174, 6, x_173); -lean_ctor_set(x_174, 7, x_160); -x_175 = lean_st_ref_set(x_12, x_174, x_55); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -lean_dec(x_175); -x_177 = l_IO_CancelToken_new(x_176); -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); -lean_inc(x_19); -x_180 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_180, 0, x_24); -lean_closure_set(x_180, 1, x_4); -lean_closure_set(x_180, 2, x_31); -lean_closure_set(x_180, 3, x_1); -lean_closure_set(x_180, 4, x_2); -lean_closure_set(x_180, 5, x_3); -lean_closure_set(x_180, 6, x_41); -lean_closure_set(x_180, 7, x_50); -lean_closure_set(x_180, 8, x_19); -x_181 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_181, 0, x_178); -x_182 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_183 = l_Lean_Name_toString(x_19, x_22, x_182); -x_184 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_185 = lean_string_append(x_184, x_183); -lean_dec(x_183); -x_186 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_187 = lean_string_append(x_185, x_186); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_181); -x_188 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_180, x_181, x_187, x_7, x_8, x_9, x_10, x_11, x_12, x_179); -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); -x_192 = lean_apply_1(x_189, x_191); -x_193 = lean_io_as_task(x_192, x_168, x_190); -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_box(0); -x_197 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_198 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -lean_ctor_set(x_198, 2, x_181); -lean_ctor_set(x_198, 3, x_194); -x_199 = l_Lean_Core_logSnapshotTask(x_198, x_11, x_12, x_195); -x_200 = lean_ctor_get(x_199, 1); -lean_inc(x_200); -lean_dec(x_199); -x_201 = lean_ctor_get(x_5, 2); -lean_inc(x_201); -lean_dec(x_5); -x_202 = lean_ctor_get(x_201, 2); -lean_inc(x_202); -lean_dec(x_201); -x_203 = 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_202); -lean_inc(x_19); -x_204 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_202, x_203, x_7, x_8, x_9, x_10, x_11, x_12, x_200); -if (lean_obj_tag(x_204) == 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 = 1; -x_207 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_202, x_206, x_7, x_8, x_9, x_10, x_11, x_12, 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_202); -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); -x_208 = lean_ctor_get(x_204, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_204, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_204)) { - lean_ctor_release(x_204, 0); - lean_ctor_release(x_204, 1); - x_210 = x_204; -} else { - lean_dec_ref(x_204); - x_210 = lean_box(0); -} -if (lean_is_scalar(x_210)) { - x_211 = lean_alloc_ctor(1, 2, 0); -} else { - x_211 = x_210; -} -lean_ctor_set(x_211, 0, x_208); -lean_ctor_set(x_211, 1, x_209); -return x_211; -} -} -} -else -{ -lean_object* x_212; lean_object* x_213; uint8_t 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; 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; uint8_t 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; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; lean_object* x_281; -x_212 = lean_ctor_get(x_36, 0); -x_213 = lean_ctor_get(x_36, 1); -x_214 = lean_ctor_get_uint8(x_36, sizeof(void*)*3); -x_215 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 1); -x_216 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 2); -x_217 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 3); -lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_36); -x_218 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; -x_219 = lean_alloc_ctor(0, 3, 4); -lean_ctor_set(x_219, 0, x_212); -lean_ctor_set(x_219, 1, x_213); -lean_ctor_set(x_219, 2, x_218); -lean_ctor_set_uint8(x_219, sizeof(void*)*3, x_214); -lean_ctor_set_uint8(x_219, sizeof(void*)*3 + 1, x_215); -lean_ctor_set_uint8(x_219, sizeof(void*)*3 + 2, x_216); -lean_ctor_set_uint8(x_219, sizeof(void*)*3 + 3, x_217); -lean_inc(x_41); -lean_ctor_set(x_35, 2, x_219); -x_220 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_37); -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 = lean_io_promise_new(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 = lean_st_ref_take(x_12, x_225); -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_227, 6); -lean_inc(x_228); -x_229 = lean_ctor_get(x_226, 1); -lean_inc(x_229); -lean_dec(x_226); -x_230 = lean_ctor_get(x_227, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_227, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_227, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_227, 3); -lean_inc(x_233); -x_234 = lean_ctor_get(x_227, 4); -lean_inc(x_234); -x_235 = lean_ctor_get(x_227, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_227, 7); -lean_inc(x_236); -if (lean_is_exclusive(x_227)) { - lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - lean_ctor_release(x_227, 2); - lean_ctor_release(x_227, 3); - lean_ctor_release(x_227, 4); - lean_ctor_release(x_227, 5); - lean_ctor_release(x_227, 6); - lean_ctor_release(x_227, 7); - x_237 = x_227; -} else { - lean_dec_ref(x_227); - x_237 = lean_box(0); -} -x_238 = lean_ctor_get_uint8(x_228, sizeof(void*)*3); -x_239 = lean_ctor_get(x_228, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_228, 1); -lean_inc(x_240); -x_241 = lean_ctor_get(x_228, 2); -lean_inc(x_241); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - lean_ctor_release(x_228, 2); - x_242 = x_228; -} else { - lean_dec_ref(x_228); - x_242 = lean_box(0); -} -x_243 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_243, 0, x_31); -x_244 = lean_io_promise_result_opt(x_224); -x_245 = l_Task_Priority_default; -x_246 = lean_task_map(x_243, x_244, x_245, x_22); -lean_inc(x_221); -x_247 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_240, x_221, x_246); -x_248 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_248, 0, x_221); -x_249 = l_Lean_PersistentArray_push___rarg(x_241, x_248); -if (lean_is_scalar(x_242)) { - x_250 = lean_alloc_ctor(0, 3, 1); -} else { - x_250 = x_242; -} -lean_ctor_set(x_250, 0, x_239); -lean_ctor_set(x_250, 1, x_247); -lean_ctor_set(x_250, 2, x_249); -lean_ctor_set_uint8(x_250, sizeof(void*)*3, x_238); -if (lean_is_scalar(x_237)) { - x_251 = lean_alloc_ctor(0, 8, 0); -} else { - x_251 = x_237; -} -lean_ctor_set(x_251, 0, x_230); -lean_ctor_set(x_251, 1, x_231); -lean_ctor_set(x_251, 2, x_232); -lean_ctor_set(x_251, 3, x_233); -lean_ctor_set(x_251, 4, x_234); -lean_ctor_set(x_251, 5, x_235); -lean_ctor_set(x_251, 6, x_250); -lean_ctor_set(x_251, 7, x_236); -x_252 = lean_st_ref_set(x_12, x_251, x_229); -x_253 = lean_ctor_get(x_252, 1); -lean_inc(x_253); -lean_dec(x_252); -x_254 = l_IO_CancelToken_new(x_253); -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); -lean_inc(x_19); -x_257 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_257, 0, x_24); -lean_closure_set(x_257, 1, x_4); -lean_closure_set(x_257, 2, x_31); -lean_closure_set(x_257, 3, x_1); -lean_closure_set(x_257, 4, x_2); -lean_closure_set(x_257, 5, x_3); -lean_closure_set(x_257, 6, x_41); -lean_closure_set(x_257, 7, x_224); -lean_closure_set(x_257, 8, x_19); -x_258 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_258, 0, x_255); -x_259 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_260 = l_Lean_Name_toString(x_19, x_22, x_259); -x_261 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_262 = lean_string_append(x_261, x_260); -lean_dec(x_260); -x_263 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_264 = lean_string_append(x_262, x_263); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_258); -x_265 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_257, x_258, x_264, x_7, x_8, x_9, x_10, x_11, x_12, x_256); -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_box(0); -x_269 = lean_apply_1(x_266, x_268); -x_270 = lean_io_as_task(x_269, x_245, x_267); -x_271 = lean_ctor_get(x_270, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_270, 1); -lean_inc(x_272); -lean_dec(x_270); -x_273 = lean_box(0); -x_274 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_275 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_275, 0, x_273); -lean_ctor_set(x_275, 1, x_274); -lean_ctor_set(x_275, 2, x_258); -lean_ctor_set(x_275, 3, x_271); -x_276 = l_Lean_Core_logSnapshotTask(x_275, x_11, x_12, x_272); -x_277 = lean_ctor_get(x_276, 1); -lean_inc(x_277); -lean_dec(x_276); -x_278 = lean_ctor_get(x_5, 2); -lean_inc(x_278); -lean_dec(x_5); -x_279 = lean_ctor_get(x_278, 2); -lean_inc(x_279); -lean_dec(x_278); -x_280 = 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_279); -lean_inc(x_19); -x_281 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_279, x_280, x_7, x_8, x_9, x_10, x_11, x_12, x_277); -if (lean_obj_tag(x_281) == 0) -{ -lean_object* x_282; uint8_t x_283; lean_object* x_284; -x_282 = lean_ctor_get(x_281, 1); -lean_inc(x_282); -lean_dec(x_281); -x_283 = 1; -x_284 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_279, x_283, x_7, x_8, x_9, x_10, x_11, x_12, x_282); -return x_284; -} -else -{ -lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -lean_dec(x_279); -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); -x_285 = lean_ctor_get(x_281, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_281, 1); -lean_inc(x_286); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_287 = x_281; -} else { - lean_dec_ref(x_281); - x_287 = lean_box(0); -} -if (lean_is_scalar(x_287)) { - x_288 = lean_alloc_ctor(1, 2, 0); -} else { - x_288 = x_287; -} -lean_ctor_set(x_288, 0, x_285); -lean_ctor_set(x_288, 1, x_286); -return x_288; -} -} -} -else -{ -uint8_t 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; uint8_t x_300; uint8_t x_301; uint8_t x_302; uint8_t x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; 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; uint8_t x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; 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; lean_object* x_367; uint8_t x_368; lean_object* x_369; -x_289 = lean_ctor_get_uint8(x_35, sizeof(void*)*9); -x_290 = lean_ctor_get(x_35, 0); -x_291 = lean_ctor_get(x_35, 1); -x_292 = lean_ctor_get(x_35, 3); -x_293 = lean_ctor_get(x_35, 4); -x_294 = lean_ctor_get(x_35, 5); -x_295 = lean_ctor_get(x_35, 6); -x_296 = lean_ctor_get(x_35, 7); -x_297 = lean_ctor_get(x_35, 8); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_inc(x_294); -lean_inc(x_293); -lean_inc(x_292); -lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_35); -x_298 = lean_ctor_get(x_36, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_36, 1); -lean_inc(x_299); -x_300 = lean_ctor_get_uint8(x_36, sizeof(void*)*3); -x_301 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 1); -x_302 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 2); -x_303 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 3); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - lean_ctor_release(x_36, 2); - x_304 = x_36; -} else { - lean_dec_ref(x_36); - x_304 = lean_box(0); -} -x_305 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; -if (lean_is_scalar(x_304)) { - x_306 = lean_alloc_ctor(0, 3, 4); -} else { - x_306 = x_304; -} -lean_ctor_set(x_306, 0, x_298); -lean_ctor_set(x_306, 1, x_299); -lean_ctor_set(x_306, 2, x_305); -lean_ctor_set_uint8(x_306, sizeof(void*)*3, x_300); -lean_ctor_set_uint8(x_306, sizeof(void*)*3 + 1, x_301); -lean_ctor_set_uint8(x_306, sizeof(void*)*3 + 2, x_302); -lean_ctor_set_uint8(x_306, sizeof(void*)*3 + 3, x_303); -lean_inc(x_295); -x_307 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_307, 0, x_290); -lean_ctor_set(x_307, 1, x_291); -lean_ctor_set(x_307, 2, x_306); -lean_ctor_set(x_307, 3, x_292); -lean_ctor_set(x_307, 4, x_293); -lean_ctor_set(x_307, 5, x_294); -lean_ctor_set(x_307, 6, x_295); -lean_ctor_set(x_307, 7, x_296); -lean_ctor_set(x_307, 8, x_297); -lean_ctor_set_uint8(x_307, sizeof(void*)*9, x_289); -lean_ctor_set(x_4, 0, x_307); -x_308 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_37); -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 = lean_io_promise_new(x_310); -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_st_ref_take(x_12, x_313); -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_315, 6); -lean_inc(x_316); -x_317 = lean_ctor_get(x_314, 1); -lean_inc(x_317); -lean_dec(x_314); -x_318 = lean_ctor_get(x_315, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_315, 1); -lean_inc(x_319); -x_320 = lean_ctor_get(x_315, 2); -lean_inc(x_320); -x_321 = lean_ctor_get(x_315, 3); -lean_inc(x_321); -x_322 = lean_ctor_get(x_315, 4); -lean_inc(x_322); -x_323 = lean_ctor_get(x_315, 5); -lean_inc(x_323); -x_324 = lean_ctor_get(x_315, 7); -lean_inc(x_324); -if (lean_is_exclusive(x_315)) { - lean_ctor_release(x_315, 0); - lean_ctor_release(x_315, 1); - lean_ctor_release(x_315, 2); - lean_ctor_release(x_315, 3); - lean_ctor_release(x_315, 4); - lean_ctor_release(x_315, 5); - lean_ctor_release(x_315, 6); - lean_ctor_release(x_315, 7); - x_325 = x_315; -} else { - lean_dec_ref(x_315); - x_325 = lean_box(0); -} -x_326 = lean_ctor_get_uint8(x_316, sizeof(void*)*3); -x_327 = lean_ctor_get(x_316, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_316, 1); -lean_inc(x_328); -x_329 = lean_ctor_get(x_316, 2); -lean_inc(x_329); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - lean_ctor_release(x_316, 2); - x_330 = x_316; -} else { - lean_dec_ref(x_316); - x_330 = lean_box(0); -} -x_331 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_331, 0, x_31); -x_332 = lean_io_promise_result_opt(x_312); -x_333 = l_Task_Priority_default; -x_334 = lean_task_map(x_331, x_332, x_333, x_22); -lean_inc(x_309); -x_335 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_328, x_309, x_334); -x_336 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_336, 0, x_309); -x_337 = l_Lean_PersistentArray_push___rarg(x_329, x_336); -if (lean_is_scalar(x_330)) { - x_338 = lean_alloc_ctor(0, 3, 1); -} else { - x_338 = x_330; -} -lean_ctor_set(x_338, 0, x_327); -lean_ctor_set(x_338, 1, x_335); -lean_ctor_set(x_338, 2, x_337); -lean_ctor_set_uint8(x_338, sizeof(void*)*3, x_326); -if (lean_is_scalar(x_325)) { - x_339 = lean_alloc_ctor(0, 8, 0); -} else { - x_339 = x_325; -} -lean_ctor_set(x_339, 0, x_318); -lean_ctor_set(x_339, 1, x_319); -lean_ctor_set(x_339, 2, x_320); -lean_ctor_set(x_339, 3, x_321); -lean_ctor_set(x_339, 4, x_322); -lean_ctor_set(x_339, 5, x_323); -lean_ctor_set(x_339, 6, x_338); -lean_ctor_set(x_339, 7, x_324); -x_340 = lean_st_ref_set(x_12, x_339, x_317); -x_341 = lean_ctor_get(x_340, 1); -lean_inc(x_341); -lean_dec(x_340); -x_342 = l_IO_CancelToken_new(x_341); -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); -lean_inc(x_19); -x_345 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_345, 0, x_24); -lean_closure_set(x_345, 1, x_4); -lean_closure_set(x_345, 2, x_31); -lean_closure_set(x_345, 3, x_1); -lean_closure_set(x_345, 4, x_2); -lean_closure_set(x_345, 5, x_3); -lean_closure_set(x_345, 6, x_295); -lean_closure_set(x_345, 7, x_312); -lean_closure_set(x_345, 8, x_19); -x_346 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_346, 0, x_343); -x_347 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_348 = l_Lean_Name_toString(x_19, x_22, x_347); -x_349 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_350 = lean_string_append(x_349, x_348); -lean_dec(x_348); -x_351 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_352 = lean_string_append(x_350, x_351); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_346); -x_353 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_345, x_346, x_352, x_7, x_8, x_9, x_10, x_11, x_12, 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_box(0); -x_357 = lean_apply_1(x_354, x_356); -x_358 = lean_io_as_task(x_357, x_333, x_355); -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); -x_361 = lean_box(0); -x_362 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_363 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_363, 0, x_361); -lean_ctor_set(x_363, 1, x_362); -lean_ctor_set(x_363, 2, x_346); -lean_ctor_set(x_363, 3, x_359); -x_364 = l_Lean_Core_logSnapshotTask(x_363, x_11, x_12, x_360); -x_365 = lean_ctor_get(x_364, 1); -lean_inc(x_365); -lean_dec(x_364); -x_366 = lean_ctor_get(x_5, 2); -lean_inc(x_366); -lean_dec(x_5); -x_367 = lean_ctor_get(x_366, 2); -lean_inc(x_367); -lean_dec(x_366); -x_368 = 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_367); -lean_inc(x_19); -x_369 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_367, x_368, x_7, x_8, x_9, x_10, x_11, x_12, x_365); -if (lean_obj_tag(x_369) == 0) -{ -lean_object* x_370; uint8_t x_371; lean_object* x_372; -x_370 = lean_ctor_get(x_369, 1); -lean_inc(x_370); -lean_dec(x_369); -x_371 = 1; -x_372 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_367, x_371, x_7, x_8, x_9, x_10, x_11, x_12, 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_367); -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); -x_373 = lean_ctor_get(x_369, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_369, 1); -lean_inc(x_374); -if (lean_is_exclusive(x_369)) { - lean_ctor_release(x_369, 0); - lean_ctor_release(x_369, 1); - x_375 = x_369; -} else { - lean_dec_ref(x_369); - x_375 = lean_box(0); -} -if (lean_is_scalar(x_375)) { - x_376 = lean_alloc_ctor(1, 2, 0); -} else { - x_376 = x_375; -} -lean_ctor_set(x_376, 0, x_373); -lean_ctor_set(x_376, 1, x_374); -return x_376; -} -} -} -else -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; uint8_t x_392; uint8_t x_393; uint8_t x_394; uint8_t 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; uint8_t 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; 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; uint8_t x_461; lean_object* x_462; -x_377 = lean_ctor_get(x_4, 1); -x_378 = lean_ctor_get(x_4, 2); -x_379 = lean_ctor_get(x_4, 3); -lean_inc(x_379); -lean_inc(x_378); -lean_inc(x_377); -lean_dec(x_4); -x_380 = lean_ctor_get_uint8(x_35, sizeof(void*)*9); -x_381 = lean_ctor_get(x_35, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_35, 1); -lean_inc(x_382); -x_383 = lean_ctor_get(x_35, 3); -lean_inc(x_383); -x_384 = lean_ctor_get(x_35, 4); -lean_inc(x_384); -x_385 = lean_ctor_get(x_35, 5); -lean_inc(x_385); -x_386 = lean_ctor_get(x_35, 6); -lean_inc(x_386); -x_387 = lean_ctor_get(x_35, 7); -lean_inc(x_387); -x_388 = lean_ctor_get(x_35, 8); -lean_inc(x_388); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - lean_ctor_release(x_35, 2); - lean_ctor_release(x_35, 3); - lean_ctor_release(x_35, 4); - lean_ctor_release(x_35, 5); - lean_ctor_release(x_35, 6); - lean_ctor_release(x_35, 7); - lean_ctor_release(x_35, 8); - x_389 = x_35; -} else { - lean_dec_ref(x_35); - x_389 = lean_box(0); -} -x_390 = lean_ctor_get(x_36, 0); -lean_inc(x_390); -x_391 = lean_ctor_get(x_36, 1); -lean_inc(x_391); -x_392 = lean_ctor_get_uint8(x_36, sizeof(void*)*3); -x_393 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 1); -x_394 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 2); -x_395 = lean_ctor_get_uint8(x_36, sizeof(void*)*3 + 3); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - lean_ctor_release(x_36, 2); - x_396 = x_36; -} else { - lean_dec_ref(x_36); - x_396 = lean_box(0); -} -x_397 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; -if (lean_is_scalar(x_396)) { - x_398 = lean_alloc_ctor(0, 3, 4); -} else { - x_398 = x_396; -} -lean_ctor_set(x_398, 0, x_390); -lean_ctor_set(x_398, 1, x_391); -lean_ctor_set(x_398, 2, x_397); -lean_ctor_set_uint8(x_398, sizeof(void*)*3, x_392); -lean_ctor_set_uint8(x_398, sizeof(void*)*3 + 1, x_393); -lean_ctor_set_uint8(x_398, sizeof(void*)*3 + 2, x_394); -lean_ctor_set_uint8(x_398, sizeof(void*)*3 + 3, x_395); -lean_inc(x_386); -if (lean_is_scalar(x_389)) { - x_399 = lean_alloc_ctor(0, 9, 1); -} else { - x_399 = x_389; -} -lean_ctor_set(x_399, 0, x_381); -lean_ctor_set(x_399, 1, x_382); -lean_ctor_set(x_399, 2, x_398); -lean_ctor_set(x_399, 3, x_383); -lean_ctor_set(x_399, 4, x_384); -lean_ctor_set(x_399, 5, x_385); -lean_ctor_set(x_399, 6, x_386); -lean_ctor_set(x_399, 7, x_387); -lean_ctor_set(x_399, 8, x_388); -lean_ctor_set_uint8(x_399, sizeof(void*)*9, x_380); -x_400 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_400, 0, x_399); -lean_ctor_set(x_400, 1, x_377); -lean_ctor_set(x_400, 2, x_378); -lean_ctor_set(x_400, 3, x_379); -x_401 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_37); -x_402 = lean_ctor_get(x_401, 0); -lean_inc(x_402); -x_403 = lean_ctor_get(x_401, 1); -lean_inc(x_403); -lean_dec(x_401); -x_404 = lean_io_promise_new(x_403); -x_405 = lean_ctor_get(x_404, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_404, 1); -lean_inc(x_406); -lean_dec(x_404); -x_407 = lean_st_ref_take(x_12, x_406); -x_408 = lean_ctor_get(x_407, 0); -lean_inc(x_408); -x_409 = lean_ctor_get(x_408, 6); -lean_inc(x_409); -x_410 = lean_ctor_get(x_407, 1); -lean_inc(x_410); -lean_dec(x_407); -x_411 = lean_ctor_get(x_408, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_408, 1); -lean_inc(x_412); -x_413 = lean_ctor_get(x_408, 2); -lean_inc(x_413); -x_414 = lean_ctor_get(x_408, 3); -lean_inc(x_414); -x_415 = lean_ctor_get(x_408, 4); -lean_inc(x_415); -x_416 = lean_ctor_get(x_408, 5); -lean_inc(x_416); -x_417 = lean_ctor_get(x_408, 7); -lean_inc(x_417); -if (lean_is_exclusive(x_408)) { - lean_ctor_release(x_408, 0); - lean_ctor_release(x_408, 1); - lean_ctor_release(x_408, 2); - lean_ctor_release(x_408, 3); - lean_ctor_release(x_408, 4); - lean_ctor_release(x_408, 5); - lean_ctor_release(x_408, 6); - lean_ctor_release(x_408, 7); - x_418 = x_408; -} else { - lean_dec_ref(x_408); - x_418 = lean_box(0); -} -x_419 = lean_ctor_get_uint8(x_409, sizeof(void*)*3); -x_420 = lean_ctor_get(x_409, 0); -lean_inc(x_420); -x_421 = lean_ctor_get(x_409, 1); -lean_inc(x_421); -x_422 = lean_ctor_get(x_409, 2); -lean_inc(x_422); -if (lean_is_exclusive(x_409)) { - lean_ctor_release(x_409, 0); - lean_ctor_release(x_409, 1); - lean_ctor_release(x_409, 2); - x_423 = x_409; -} else { - lean_dec_ref(x_409); - x_423 = lean_box(0); -} -x_424 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_424, 0, x_31); -x_425 = lean_io_promise_result_opt(x_405); -x_426 = l_Task_Priority_default; -x_427 = lean_task_map(x_424, x_425, x_426, x_22); -lean_inc(x_402); -x_428 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_421, x_402, x_427); -x_429 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_429, 0, x_402); -x_430 = l_Lean_PersistentArray_push___rarg(x_422, x_429); -if (lean_is_scalar(x_423)) { - x_431 = lean_alloc_ctor(0, 3, 1); -} else { - x_431 = x_423; -} -lean_ctor_set(x_431, 0, x_420); -lean_ctor_set(x_431, 1, x_428); -lean_ctor_set(x_431, 2, x_430); -lean_ctor_set_uint8(x_431, sizeof(void*)*3, x_419); -if (lean_is_scalar(x_418)) { - x_432 = lean_alloc_ctor(0, 8, 0); -} else { - x_432 = x_418; -} -lean_ctor_set(x_432, 0, x_411); -lean_ctor_set(x_432, 1, x_412); -lean_ctor_set(x_432, 2, x_413); -lean_ctor_set(x_432, 3, x_414); -lean_ctor_set(x_432, 4, x_415); -lean_ctor_set(x_432, 5, x_416); -lean_ctor_set(x_432, 6, x_431); -lean_ctor_set(x_432, 7, x_417); -x_433 = lean_st_ref_set(x_12, x_432, x_410); -x_434 = lean_ctor_get(x_433, 1); -lean_inc(x_434); -lean_dec(x_433); -x_435 = l_IO_CancelToken_new(x_434); -x_436 = lean_ctor_get(x_435, 0); -lean_inc(x_436); -x_437 = lean_ctor_get(x_435, 1); -lean_inc(x_437); -lean_dec(x_435); -lean_inc(x_19); -x_438 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_438, 0, x_24); -lean_closure_set(x_438, 1, x_400); -lean_closure_set(x_438, 2, x_31); -lean_closure_set(x_438, 3, x_1); -lean_closure_set(x_438, 4, x_2); -lean_closure_set(x_438, 5, x_3); -lean_closure_set(x_438, 6, x_386); -lean_closure_set(x_438, 7, x_405); -lean_closure_set(x_438, 8, x_19); -x_439 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_439, 0, x_436); -x_440 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_441 = l_Lean_Name_toString(x_19, x_22, x_440); -x_442 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_443 = lean_string_append(x_442, x_441); -lean_dec(x_441); -x_444 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_445 = lean_string_append(x_443, x_444); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_439); -x_446 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_438, x_439, x_445, x_7, x_8, x_9, x_10, x_11, x_12, x_437); -x_447 = lean_ctor_get(x_446, 0); -lean_inc(x_447); -x_448 = lean_ctor_get(x_446, 1); -lean_inc(x_448); -lean_dec(x_446); -x_449 = lean_box(0); -x_450 = lean_apply_1(x_447, x_449); -x_451 = lean_io_as_task(x_450, x_426, x_448); -x_452 = lean_ctor_get(x_451, 0); -lean_inc(x_452); -x_453 = lean_ctor_get(x_451, 1); -lean_inc(x_453); -lean_dec(x_451); -x_454 = lean_box(0); -x_455 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_456 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_456, 0, x_454); -lean_ctor_set(x_456, 1, x_455); -lean_ctor_set(x_456, 2, x_439); -lean_ctor_set(x_456, 3, x_452); -x_457 = l_Lean_Core_logSnapshotTask(x_456, x_11, x_12, x_453); -x_458 = lean_ctor_get(x_457, 1); -lean_inc(x_458); -lean_dec(x_457); -x_459 = lean_ctor_get(x_5, 2); -lean_inc(x_459); -lean_dec(x_5); -x_460 = lean_ctor_get(x_459, 2); -lean_inc(x_460); -lean_dec(x_459); -x_461 = 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_460); -lean_inc(x_19); -x_462 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_460, x_461, x_7, x_8, x_9, x_10, x_11, x_12, x_458); -if (lean_obj_tag(x_462) == 0) -{ -lean_object* x_463; uint8_t x_464; lean_object* x_465; -x_463 = lean_ctor_get(x_462, 1); -lean_inc(x_463); -lean_dec(x_462); -x_464 = 1; -x_465 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_460, x_464, x_7, x_8, x_9, x_10, x_11, x_12, x_463); -return x_465; -} -else -{ -lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -lean_dec(x_460); -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); -x_466 = lean_ctor_get(x_462, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_462, 1); -lean_inc(x_467); -if (lean_is_exclusive(x_462)) { - lean_ctor_release(x_462, 0); - lean_ctor_release(x_462, 1); - x_468 = x_462; -} else { - lean_dec_ref(x_462); - x_468 = lean_box(0); -} -if (lean_is_scalar(x_468)) { - x_469 = lean_alloc_ctor(1, 2, 0); -} else { - x_469 = x_468; -} -lean_ctor_set(x_469, 0, x_466); -lean_ctor_set(x_469, 1, x_467); -return x_469; -} -} -} -else -{ -uint8_t x_470; -lean_dec(x_24); -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_470 = !lean_is_exclusive(x_34); -if (x_470 == 0) -{ -return x_34; -} -else -{ -lean_object* x_471; lean_object* x_472; lean_object* x_473; -x_471 = lean_ctor_get(x_34, 0); -x_472 = lean_ctor_get(x_34, 1); -lean_inc(x_472); -lean_inc(x_471); -lean_dec(x_34); -x_473 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_473, 0, x_471); -lean_ctor_set(x_473, 1, x_472); -return x_473; -} -} -} -else -{ -lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_474 = lean_ctor_get(x_27, 1); -lean_inc(x_474); -lean_dec(x_27); -x_475 = lean_box(0); -lean_inc(x_4); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_4); -lean_ctor_set(x_476, 1, x_475); -x_477 = lean_array_mk(x_476); -lean_inc(x_24); -lean_inc(x_477); -lean_inc(x_4); -x_478 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__1___boxed), 12, 4); -lean_closure_set(x_478, 0, x_4); -lean_closure_set(x_478, 1, x_477); -lean_closure_set(x_478, 2, x_475); -lean_closure_set(x_478, 3, x_24); -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_479 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars___rarg(x_1, x_2, x_477, x_478, x_7, x_8, x_9, x_10, x_11, x_12, x_474); -lean_dec(x_477); -if (lean_obj_tag(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; uint8_t 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; uint8_t x_499; uint8_t x_500; uint8_t x_501; uint8_t 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; uint8_t 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; 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; uint8_t x_568; lean_object* x_569; -x_480 = lean_ctor_get(x_4, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_480, 2); -lean_inc(x_481); -x_482 = lean_ctor_get(x_479, 1); -lean_inc(x_482); -lean_dec(x_479); -x_483 = lean_ctor_get(x_4, 1); -lean_inc(x_483); -x_484 = lean_ctor_get(x_4, 2); -lean_inc(x_484); -x_485 = lean_ctor_get(x_4, 3); -lean_inc(x_485); -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); - x_486 = x_4; -} else { - lean_dec_ref(x_4); - x_486 = lean_box(0); -} -x_487 = lean_ctor_get_uint8(x_480, sizeof(void*)*9); -x_488 = lean_ctor_get(x_480, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_480, 1); -lean_inc(x_489); -x_490 = lean_ctor_get(x_480, 3); -lean_inc(x_490); -x_491 = lean_ctor_get(x_480, 4); -lean_inc(x_491); -x_492 = lean_ctor_get(x_480, 5); -lean_inc(x_492); -x_493 = lean_ctor_get(x_480, 6); -lean_inc(x_493); -x_494 = lean_ctor_get(x_480, 7); -lean_inc(x_494); -x_495 = lean_ctor_get(x_480, 8); -lean_inc(x_495); -if (lean_is_exclusive(x_480)) { - lean_ctor_release(x_480, 0); - lean_ctor_release(x_480, 1); - lean_ctor_release(x_480, 2); - lean_ctor_release(x_480, 3); - lean_ctor_release(x_480, 4); - lean_ctor_release(x_480, 5); - lean_ctor_release(x_480, 6); - lean_ctor_release(x_480, 7); - lean_ctor_release(x_480, 8); - x_496 = x_480; -} else { - lean_dec_ref(x_480); - x_496 = lean_box(0); -} -x_497 = lean_ctor_get(x_481, 0); -lean_inc(x_497); -x_498 = lean_ctor_get(x_481, 1); -lean_inc(x_498); -x_499 = lean_ctor_get_uint8(x_481, sizeof(void*)*3); -x_500 = lean_ctor_get_uint8(x_481, sizeof(void*)*3 + 1); -x_501 = lean_ctor_get_uint8(x_481, sizeof(void*)*3 + 2); -x_502 = lean_ctor_get_uint8(x_481, sizeof(void*)*3 + 3); -if (lean_is_exclusive(x_481)) { - lean_ctor_release(x_481, 0); - lean_ctor_release(x_481, 1); - lean_ctor_release(x_481, 2); - x_503 = x_481; -} else { - lean_dec_ref(x_481); - x_503 = lean_box(0); -} -x_504 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; -if (lean_is_scalar(x_503)) { - x_505 = lean_alloc_ctor(0, 3, 4); -} else { - x_505 = x_503; -} -lean_ctor_set(x_505, 0, x_497); -lean_ctor_set(x_505, 1, x_498); -lean_ctor_set(x_505, 2, x_504); -lean_ctor_set_uint8(x_505, sizeof(void*)*3, x_499); -lean_ctor_set_uint8(x_505, sizeof(void*)*3 + 1, x_500); -lean_ctor_set_uint8(x_505, sizeof(void*)*3 + 2, x_501); -lean_ctor_set_uint8(x_505, sizeof(void*)*3 + 3, x_502); -lean_inc(x_493); -if (lean_is_scalar(x_496)) { - x_506 = lean_alloc_ctor(0, 9, 1); -} else { - x_506 = x_496; -} -lean_ctor_set(x_506, 0, x_488); -lean_ctor_set(x_506, 1, x_489); -lean_ctor_set(x_506, 2, x_505); -lean_ctor_set(x_506, 3, x_490); -lean_ctor_set(x_506, 4, x_491); -lean_ctor_set(x_506, 5, x_492); -lean_ctor_set(x_506, 6, x_493); -lean_ctor_set(x_506, 7, x_494); -lean_ctor_set(x_506, 8, x_495); -lean_ctor_set_uint8(x_506, sizeof(void*)*9, x_487); -if (lean_is_scalar(x_486)) { - x_507 = lean_alloc_ctor(0, 4, 0); -} else { - x_507 = x_486; -} -lean_ctor_set(x_507, 0, x_506); -lean_ctor_set(x_507, 1, x_483); -lean_ctor_set(x_507, 2, x_484); -lean_ctor_set(x_507, 3, x_485); -x_508 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_482); -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_io_promise_new(x_510); -x_512 = lean_ctor_get(x_511, 0); -lean_inc(x_512); -x_513 = lean_ctor_get(x_511, 1); -lean_inc(x_513); -lean_dec(x_511); -x_514 = lean_st_ref_take(x_12, x_513); -x_515 = lean_ctor_get(x_514, 0); -lean_inc(x_515); -x_516 = lean_ctor_get(x_515, 6); -lean_inc(x_516); -x_517 = lean_ctor_get(x_514, 1); -lean_inc(x_517); -lean_dec(x_514); -x_518 = lean_ctor_get(x_515, 0); -lean_inc(x_518); -x_519 = lean_ctor_get(x_515, 1); -lean_inc(x_519); -x_520 = lean_ctor_get(x_515, 2); -lean_inc(x_520); -x_521 = lean_ctor_get(x_515, 3); -lean_inc(x_521); -x_522 = lean_ctor_get(x_515, 4); -lean_inc(x_522); -x_523 = lean_ctor_get(x_515, 5); -lean_inc(x_523); -x_524 = lean_ctor_get(x_515, 7); -lean_inc(x_524); -if (lean_is_exclusive(x_515)) { - lean_ctor_release(x_515, 0); - lean_ctor_release(x_515, 1); - lean_ctor_release(x_515, 2); - lean_ctor_release(x_515, 3); - lean_ctor_release(x_515, 4); - lean_ctor_release(x_515, 5); - lean_ctor_release(x_515, 6); - lean_ctor_release(x_515, 7); - x_525 = x_515; -} else { - lean_dec_ref(x_515); - x_525 = lean_box(0); -} -x_526 = lean_ctor_get_uint8(x_516, sizeof(void*)*3); -x_527 = lean_ctor_get(x_516, 0); -lean_inc(x_527); -x_528 = lean_ctor_get(x_516, 1); -lean_inc(x_528); -x_529 = lean_ctor_get(x_516, 2); -lean_inc(x_529); -if (lean_is_exclusive(x_516)) { - lean_ctor_release(x_516, 0); - lean_ctor_release(x_516, 1); - lean_ctor_release(x_516, 2); - x_530 = x_516; -} else { - lean_dec_ref(x_516); - x_530 = lean_box(0); -} -x_531 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_531, 0, x_475); -x_532 = lean_io_promise_result_opt(x_512); -x_533 = l_Task_Priority_default; -x_534 = lean_task_map(x_531, x_532, x_533, x_22); -lean_inc(x_509); -x_535 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_528, x_509, x_534); -x_536 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_536, 0, x_509); -x_537 = l_Lean_PersistentArray_push___rarg(x_529, x_536); -if (lean_is_scalar(x_530)) { - x_538 = lean_alloc_ctor(0, 3, 1); -} else { - x_538 = x_530; -} -lean_ctor_set(x_538, 0, x_527); -lean_ctor_set(x_538, 1, x_535); -lean_ctor_set(x_538, 2, x_537); -lean_ctor_set_uint8(x_538, sizeof(void*)*3, x_526); -if (lean_is_scalar(x_525)) { - x_539 = lean_alloc_ctor(0, 8, 0); -} else { - x_539 = x_525; -} -lean_ctor_set(x_539, 0, x_518); -lean_ctor_set(x_539, 1, x_519); -lean_ctor_set(x_539, 2, x_520); -lean_ctor_set(x_539, 3, x_521); -lean_ctor_set(x_539, 4, x_522); -lean_ctor_set(x_539, 5, x_523); -lean_ctor_set(x_539, 6, x_538); -lean_ctor_set(x_539, 7, x_524); -x_540 = lean_st_ref_set(x_12, x_539, x_517); -x_541 = lean_ctor_get(x_540, 1); -lean_inc(x_541); -lean_dec(x_540); -x_542 = l_IO_CancelToken_new(x_541); -x_543 = lean_ctor_get(x_542, 0); -lean_inc(x_543); -x_544 = lean_ctor_get(x_542, 1); -lean_inc(x_544); -lean_dec(x_542); -lean_inc(x_19); -x_545 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_545, 0, x_24); -lean_closure_set(x_545, 1, x_507); -lean_closure_set(x_545, 2, x_475); -lean_closure_set(x_545, 3, x_1); -lean_closure_set(x_545, 4, x_2); -lean_closure_set(x_545, 5, x_3); -lean_closure_set(x_545, 6, x_493); -lean_closure_set(x_545, 7, x_512); -lean_closure_set(x_545, 8, x_19); -x_546 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_546, 0, x_543); -x_547 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_19); -x_548 = l_Lean_Name_toString(x_19, x_22, x_547); -x_549 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_550 = lean_string_append(x_549, x_548); -lean_dec(x_548); -x_551 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_552 = lean_string_append(x_550, x_551); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_546); -x_553 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_545, x_546, x_552, x_7, x_8, x_9, x_10, x_11, x_12, x_544); -x_554 = lean_ctor_get(x_553, 0); -lean_inc(x_554); -x_555 = lean_ctor_get(x_553, 1); -lean_inc(x_555); -lean_dec(x_553); -x_556 = lean_box(0); -x_557 = lean_apply_1(x_554, x_556); -x_558 = lean_io_as_task(x_557, x_533, x_555); -x_559 = lean_ctor_get(x_558, 0); -lean_inc(x_559); -x_560 = lean_ctor_get(x_558, 1); -lean_inc(x_560); -lean_dec(x_558); -x_561 = lean_box(0); -x_562 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_563 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_563, 0, x_561); -lean_ctor_set(x_563, 1, x_562); -lean_ctor_set(x_563, 2, x_546); -lean_ctor_set(x_563, 3, x_559); -x_564 = l_Lean_Core_logSnapshotTask(x_563, x_11, x_12, x_560); -x_565 = lean_ctor_get(x_564, 1); -lean_inc(x_565); -lean_dec(x_564); -x_566 = lean_ctor_get(x_5, 2); -lean_inc(x_566); -lean_dec(x_5); -x_567 = lean_ctor_get(x_566, 2); -lean_inc(x_567); -lean_dec(x_566); -x_568 = 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_567); -lean_inc(x_19); -x_569 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_567, x_568, x_7, x_8, x_9, x_10, x_11, x_12, x_565); -if (lean_obj_tag(x_569) == 0) -{ -lean_object* x_570; uint8_t x_571; lean_object* x_572; -x_570 = lean_ctor_get(x_569, 1); -lean_inc(x_570); -lean_dec(x_569); -x_571 = 1; -x_572 = l_Lean_Elab_Term_applyAttributesAt(x_19, x_567, x_571, x_7, x_8, x_9, x_10, x_11, x_12, x_570); -return x_572; -} -else -{ -lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; -lean_dec(x_567); -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); -x_573 = lean_ctor_get(x_569, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_569, 1); -lean_inc(x_574); -if (lean_is_exclusive(x_569)) { - lean_ctor_release(x_569, 0); - lean_ctor_release(x_569, 1); - x_575 = x_569; -} else { - lean_dec_ref(x_569); - x_575 = lean_box(0); -} -if (lean_is_scalar(x_575)) { - x_576 = lean_alloc_ctor(1, 2, 0); -} else { - x_576 = x_575; -} -lean_ctor_set(x_576, 0, x_573); -lean_ctor_set(x_576, 1, x_574); -return x_576; -} -} -else -{ -lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; -lean_dec(x_24); -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_577 = lean_ctor_get(x_479, 0); -lean_inc(x_577); -x_578 = lean_ctor_get(x_479, 1); -lean_inc(x_578); -if (lean_is_exclusive(x_479)) { - lean_ctor_release(x_479, 0); - lean_ctor_release(x_479, 1); - x_579 = x_479; -} else { - lean_dec_ref(x_479); - x_579 = lean_box(0); -} -if (lean_is_scalar(x_579)) { - x_580 = lean_alloc_ctor(1, 2, 0); -} else { - x_580 = x_579; -} -lean_ctor_set(x_580, 0, x_577); -lean_ctor_set(x_580, 1, x_578); -return x_580; -} -} -} -else -{ -uint8_t x_581; -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_581 = !lean_is_exclusive(x_23); -if (x_581 == 0) -{ -lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; -x_582 = lean_ctor_get(x_23, 0); -x_583 = lean_io_error_to_string(x_582); -x_584 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_584, 0, x_583); -x_585 = l_Lean_MessageData_ofFormat(x_584); -lean_ctor_set(x_14, 1, x_585); -lean_ctor_set(x_14, 0, x_20); -lean_ctor_set(x_23, 0, x_14); -return x_23; -} -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; -x_586 = lean_ctor_get(x_23, 0); -x_587 = lean_ctor_get(x_23, 1); -lean_inc(x_587); -lean_inc(x_586); -lean_dec(x_23); -x_588 = lean_io_error_to_string(x_586); -x_589 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_589, 0, x_588); -x_590 = l_Lean_MessageData_ofFormat(x_589); -lean_ctor_set(x_14, 1, x_590); -lean_ctor_set(x_14, 0, x_20); -x_591 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_591, 0, x_14); -lean_ctor_set(x_591, 1, x_587); -return x_591; -} -} -} -else -{ -lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; uint8_t x_597; uint8_t x_598; lean_object* x_599; -x_592 = lean_ctor_get(x_14, 0); -x_593 = lean_ctor_get(x_14, 1); -lean_inc(x_593); -lean_inc(x_592); -lean_dec(x_14); -x_594 = lean_ctor_get(x_592, 0); -lean_inc(x_594); -lean_dec(x_592); -x_595 = lean_ctor_get(x_6, 1); -lean_inc(x_595); lean_dec(x_6); -x_596 = lean_ctor_get(x_11, 5); -lean_inc(x_596); -x_597 = 1; -x_598 = 1; -lean_inc(x_595); -x_599 = l_Lean_Environment_addConstAsync(x_594, x_595, x_597, x_597, x_598, x_598, x_593); -if (lean_obj_tag(x_599) == 0) +x_593 = lean_ctor_get(x_11, 5); +lean_inc(x_593); +if (x_25 == 0) { -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_dec(x_596); -x_600 = lean_ctor_get(x_599, 0); -lean_inc(x_600); -x_601 = lean_ctor_get(x_599, 1); -lean_inc(x_601); -lean_dec(x_599); -x_602 = lean_ctor_get(x_600, 0); -lean_inc(x_602); -x_603 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__2(x_602, x_7, x_8, x_9, x_10, x_11, x_12, x_601); -x_604 = lean_ctor_get(x_603, 1); -lean_inc(x_604); -if (lean_is_exclusive(x_603)) { - lean_ctor_release(x_603, 0); - lean_ctor_release(x_603, 1); - x_605 = x_603; -} else { - lean_dec_ref(x_603); - x_605 = lean_box(0); +lean_object* x_615; +x_615 = lean_box(0); +x_594 = x_615; +goto block_614; } -x_606 = lean_box(0); -lean_inc(x_4); -if (lean_is_scalar(x_605)) { - x_607 = lean_alloc_ctor(1, 2, 0); -} else { - x_607 = x_605; - lean_ctor_set_tag(x_607, 1); -} -lean_ctor_set(x_607, 0, x_4); -lean_ctor_set(x_607, 1, x_606); -x_608 = lean_array_mk(x_607); -lean_inc(x_600); -lean_inc(x_608); -lean_inc(x_4); -x_609 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__1___boxed), 12, 4); -lean_closure_set(x_609, 0, x_4); -lean_closure_set(x_609, 1, x_608); -lean_closure_set(x_609, 2, x_606); -lean_closure_set(x_609, 3, x_600); -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_610 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars___rarg(x_1, x_2, x_608, x_609, x_7, x_8, x_9, x_10, x_11, x_12, x_604); -lean_dec(x_608); -if (lean_obj_tag(x_610) == 0) +else { -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; uint8_t 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; uint8_t x_630; uint8_t x_631; uint8_t x_632; uint8_t 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; 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; 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; 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; 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; uint8_t x_699; lean_object* x_700; -x_611 = lean_ctor_get(x_4, 0); -lean_inc(x_611); -x_612 = lean_ctor_get(x_611, 2); -lean_inc(x_612); -x_613 = lean_ctor_get(x_610, 1); -lean_inc(x_613); -lean_dec(x_610); -x_614 = lean_ctor_get(x_4, 1); -lean_inc(x_614); -x_615 = lean_ctor_get(x_4, 2); -lean_inc(x_615); -x_616 = lean_ctor_get(x_4, 3); -lean_inc(x_616); -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); - x_617 = x_4; -} else { - lean_dec_ref(x_4); - x_617 = lean_box(0); +lean_object* x_616; lean_object* x_617; lean_object* x_618; uint8_t x_619; +x_616 = lean_unsigned_to_nat(1u); +x_617 = l_Lean_Syntax_getArg(x_23, x_616); +x_618 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__3; +x_619 = l_Lean_Syntax_matchesIdent(x_617, x_618); +lean_dec(x_617); +if (x_619 == 0) +{ +lean_object* x_620; +x_620 = lean_box(0); +x_594 = x_620; +goto block_614; } -x_618 = lean_ctor_get_uint8(x_611, sizeof(void*)*9); -x_619 = lean_ctor_get(x_611, 0); -lean_inc(x_619); -x_620 = lean_ctor_get(x_611, 1); -lean_inc(x_620); -x_621 = lean_ctor_get(x_611, 3); -lean_inc(x_621); -x_622 = lean_ctor_get(x_611, 4); +else +{ +lean_object* x_621; lean_object* x_622; lean_object* x_623; uint8_t x_624; +x_621 = lean_unsigned_to_nat(2u); +x_622 = l_Lean_Syntax_getArg(x_23, x_621); +x_623 = l_Lean_Elab_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__15___closed__2; lean_inc(x_622); -x_623 = lean_ctor_get(x_611, 5); -lean_inc(x_623); -x_624 = lean_ctor_get(x_611, 6); -lean_inc(x_624); -x_625 = lean_ctor_get(x_611, 7); -lean_inc(x_625); -x_626 = lean_ctor_get(x_611, 8); -lean_inc(x_626); -if (lean_is_exclusive(x_611)) { - lean_ctor_release(x_611, 0); - lean_ctor_release(x_611, 1); - lean_ctor_release(x_611, 2); - lean_ctor_release(x_611, 3); - lean_ctor_release(x_611, 4); - lean_ctor_release(x_611, 5); - lean_ctor_release(x_611, 6); - lean_ctor_release(x_611, 7); - lean_ctor_release(x_611, 8); - x_627 = x_611; -} else { - lean_dec_ref(x_611); - x_627 = lean_box(0); +x_624 = l_Lean_Syntax_isOfKind(x_622, x_623); +if (x_624 == 0) +{ +lean_object* x_625; +lean_dec(x_622); +x_625 = lean_box(0); +x_594 = x_625; +goto block_614; } -x_628 = lean_ctor_get(x_612, 0); -lean_inc(x_628); -x_629 = lean_ctor_get(x_612, 1); -lean_inc(x_629); -x_630 = lean_ctor_get_uint8(x_612, sizeof(void*)*3); -x_631 = lean_ctor_get_uint8(x_612, sizeof(void*)*3 + 1); -x_632 = lean_ctor_get_uint8(x_612, sizeof(void*)*3 + 2); -x_633 = lean_ctor_get_uint8(x_612, sizeof(void*)*3 + 3); -if (lean_is_exclusive(x_612)) { - lean_ctor_release(x_612, 0); - lean_ctor_release(x_612, 1); - lean_ctor_release(x_612, 2); - x_634 = x_612; -} else { - lean_dec_ref(x_612); - x_634 = lean_box(0); +else +{ +lean_object* x_626; lean_object* x_627; uint8_t x_628; +x_626 = lean_unsigned_to_nat(0u); +x_627 = l_Lean_Syntax_getArg(x_622, x_626); +x_628 = l_Lean_Syntax_matchesNull(x_627, x_626); +if (x_628 == 0) +{ +lean_object* x_629; +lean_dec(x_622); +x_629 = lean_box(0); +x_594 = x_629; +goto block_614; } -x_635 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; -if (lean_is_scalar(x_634)) { - x_636 = lean_alloc_ctor(0, 3, 4); -} else { - x_636 = x_634; +else +{ +lean_object* x_630; uint8_t x_631; +x_630 = l_Lean_Syntax_getArg(x_622, x_616); +lean_dec(x_622); +x_631 = l_Lean_Syntax_matchesNull(x_630, x_626); +if (x_631 == 0) +{ +lean_object* x_632; +x_632 = lean_box(0); +x_594 = x_632; +goto block_614; } -lean_ctor_set(x_636, 0, x_628); -lean_ctor_set(x_636, 1, x_629); -lean_ctor_set(x_636, 2, x_635); -lean_ctor_set_uint8(x_636, sizeof(void*)*3, x_630); -lean_ctor_set_uint8(x_636, sizeof(void*)*3 + 1, x_631); -lean_ctor_set_uint8(x_636, sizeof(void*)*3 + 2, x_632); -lean_ctor_set_uint8(x_636, sizeof(void*)*3 + 3, x_633); -lean_inc(x_624); -if (lean_is_scalar(x_627)) { - x_637 = lean_alloc_ctor(0, 9, 1); -} else { - x_637 = x_627; +else +{ +lean_object* x_633; lean_object* x_634; uint8_t x_635; +x_633 = lean_unsigned_to_nat(3u); +x_634 = l_Lean_Syntax_getArg(x_23, x_633); +x_635 = l_Lean_Syntax_matchesNull(x_634, x_626); +if (x_635 == 0) +{ +lean_object* x_636; +x_636 = lean_box(0); +x_594 = x_636; +goto block_614; } -lean_ctor_set(x_637, 0, x_619); -lean_ctor_set(x_637, 1, x_620); -lean_ctor_set(x_637, 2, x_636); -lean_ctor_set(x_637, 3, x_621); -lean_ctor_set(x_637, 4, x_622); -lean_ctor_set(x_637, 5, x_623); -lean_ctor_set(x_637, 6, x_624); -lean_ctor_set(x_637, 7, x_625); -lean_ctor_set(x_637, 8, x_626); -lean_ctor_set_uint8(x_637, sizeof(void*)*9, x_618); -if (lean_is_scalar(x_617)) { - x_638 = lean_alloc_ctor(0, 4, 0); -} else { - x_638 = x_617; -} -lean_ctor_set(x_638, 0, x_637); -lean_ctor_set(x_638, 1, x_614); -lean_ctor_set(x_638, 2, x_615); -lean_ctor_set(x_638, 3, x_616); -x_639 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_613); +else +{ +uint8_t x_637; uint8_t x_638; lean_object* x_639; +lean_dec(x_18); +x_637 = 1; +x_638 = 1; +lean_inc(x_26); +x_639 = l_Lean_Environment_addConstAsync(x_19, x_26, x_637, x_637, x_638, x_638, x_17); +if (lean_obj_tag(x_639) == 0) +{ +lean_object* x_640; lean_object* x_641; +lean_dec(x_593); x_640 = lean_ctor_get(x_639, 0); lean_inc(x_640); x_641 = lean_ctor_get(x_639, 1); lean_inc(x_641); lean_dec(x_639); -x_642 = lean_io_promise_new(x_641); -x_643 = lean_ctor_get(x_642, 0); -lean_inc(x_643); -x_644 = lean_ctor_get(x_642, 1); -lean_inc(x_644); -lean_dec(x_642); -x_645 = lean_st_ref_take(x_12, x_644); -x_646 = lean_ctor_get(x_645, 0); -lean_inc(x_646); -x_647 = lean_ctor_get(x_646, 6); -lean_inc(x_647); -x_648 = lean_ctor_get(x_645, 1); -lean_inc(x_648); -lean_dec(x_645); -x_649 = lean_ctor_get(x_646, 0); -lean_inc(x_649); -x_650 = lean_ctor_get(x_646, 1); -lean_inc(x_650); -x_651 = lean_ctor_get(x_646, 2); -lean_inc(x_651); -x_652 = lean_ctor_get(x_646, 3); -lean_inc(x_652); -x_653 = lean_ctor_get(x_646, 4); -lean_inc(x_653); -x_654 = lean_ctor_get(x_646, 5); -lean_inc(x_654); -x_655 = lean_ctor_get(x_646, 7); -lean_inc(x_655); -if (lean_is_exclusive(x_646)) { - lean_ctor_release(x_646, 0); - lean_ctor_release(x_646, 1); - lean_ctor_release(x_646, 2); - lean_ctor_release(x_646, 3); - lean_ctor_release(x_646, 4); - lean_ctor_release(x_646, 5); - lean_ctor_release(x_646, 6); - lean_ctor_release(x_646, 7); - x_656 = x_646; -} else { - lean_dec_ref(x_646); - x_656 = lean_box(0); +x_27 = x_640; +x_28 = x_641; +goto block_592; } -x_657 = lean_ctor_get_uint8(x_647, sizeof(void*)*3); -x_658 = lean_ctor_get(x_647, 0); -lean_inc(x_658); -x_659 = lean_ctor_get(x_647, 1); -lean_inc(x_659); -x_660 = lean_ctor_get(x_647, 2); -lean_inc(x_660); -if (lean_is_exclusive(x_647)) { - lean_ctor_release(x_647, 0); - lean_ctor_release(x_647, 1); - lean_ctor_release(x_647, 2); - x_661 = x_647; -} else { - lean_dec_ref(x_647); - x_661 = lean_box(0); -} -x_662 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); -lean_closure_set(x_662, 0, x_606); -x_663 = lean_io_promise_result_opt(x_643); -x_664 = l_Task_Priority_default; -x_665 = lean_task_map(x_662, x_663, x_664, x_598); -lean_inc(x_640); -x_666 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_659, x_640, x_665); -x_667 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_667, 0, x_640); -x_668 = l_Lean_PersistentArray_push___rarg(x_660, x_667); -if (lean_is_scalar(x_661)) { - x_669 = lean_alloc_ctor(0, 3, 1); -} else { - x_669 = x_661; -} -lean_ctor_set(x_669, 0, x_658); -lean_ctor_set(x_669, 1, x_666); -lean_ctor_set(x_669, 2, x_668); -lean_ctor_set_uint8(x_669, sizeof(void*)*3, x_657); -if (lean_is_scalar(x_656)) { - x_670 = lean_alloc_ctor(0, 8, 0); -} else { - x_670 = x_656; -} -lean_ctor_set(x_670, 0, x_649); -lean_ctor_set(x_670, 1, x_650); -lean_ctor_set(x_670, 2, x_651); -lean_ctor_set(x_670, 3, x_652); -lean_ctor_set(x_670, 4, x_653); -lean_ctor_set(x_670, 5, x_654); -lean_ctor_set(x_670, 6, x_669); -lean_ctor_set(x_670, 7, x_655); -x_671 = lean_st_ref_set(x_12, x_670, x_648); -x_672 = lean_ctor_get(x_671, 1); -lean_inc(x_672); -lean_dec(x_671); -x_673 = l_IO_CancelToken_new(x_672); -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_inc(x_595); -x_676 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); -lean_closure_set(x_676, 0, x_600); -lean_closure_set(x_676, 1, x_638); -lean_closure_set(x_676, 2, x_606); -lean_closure_set(x_676, 3, x_1); -lean_closure_set(x_676, 4, x_2); -lean_closure_set(x_676, 5, x_3); -lean_closure_set(x_676, 6, x_624); -lean_closure_set(x_676, 7, x_643); -lean_closure_set(x_676, 8, x_595); -x_677 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_677, 0, x_674); -x_678 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; -lean_inc(x_595); -x_679 = l_Lean_Name_toString(x_595, x_598, x_678); -x_680 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; -x_681 = lean_string_append(x_680, x_679); -lean_dec(x_679); -x_682 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; -x_683 = lean_string_append(x_681, x_682); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_677); -x_684 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_676, x_677, x_683, x_7, x_8, x_9, x_10, x_11, x_12, x_675); -x_685 = lean_ctor_get(x_684, 0); -lean_inc(x_685); -x_686 = lean_ctor_get(x_684, 1); -lean_inc(x_686); -lean_dec(x_684); -x_687 = lean_box(0); -x_688 = lean_apply_1(x_685, x_687); -x_689 = lean_io_as_task(x_688, x_664, x_686); -x_690 = lean_ctor_get(x_689, 0); -lean_inc(x_690); -x_691 = lean_ctor_get(x_689, 1); -lean_inc(x_691); -lean_dec(x_689); -x_692 = lean_box(0); -x_693 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; -x_694 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_694, 0, x_692); -lean_ctor_set(x_694, 1, x_693); -lean_ctor_set(x_694, 2, x_677); -lean_ctor_set(x_694, 3, x_690); -x_695 = l_Lean_Core_logSnapshotTask(x_694, x_11, x_12, x_691); -x_696 = lean_ctor_get(x_695, 1); -lean_inc(x_696); -lean_dec(x_695); -x_697 = lean_ctor_get(x_5, 2); -lean_inc(x_697); +else +{ +uint8_t x_642; +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +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_5); -x_698 = lean_ctor_get(x_697, 2); -lean_inc(x_698); -lean_dec(x_697); -x_699 = 0; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_642 = !lean_is_exclusive(x_639); +if (x_642 == 0) +{ +lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; +x_643 = lean_ctor_get(x_639, 0); +x_644 = lean_io_error_to_string(x_643); +x_645 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_645, 0, x_644); +x_646 = l_Lean_MessageData_ofFormat(x_645); +x_647 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_647, 0, x_593); +lean_ctor_set(x_647, 1, x_646); +lean_ctor_set(x_639, 0, x_647); +return x_639; +} +else +{ +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; +x_648 = lean_ctor_get(x_639, 0); +x_649 = lean_ctor_get(x_639, 1); +lean_inc(x_649); +lean_inc(x_648); +lean_dec(x_639); +x_650 = lean_io_error_to_string(x_648); +x_651 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_651, 0, x_650); +x_652 = l_Lean_MessageData_ofFormat(x_651); +x_653 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_653, 0, x_593); +lean_ctor_set(x_653, 1, x_652); +x_654 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_654, 0, x_653); +lean_ctor_set(x_654, 1, x_649); +return x_654; +} +} +} +} +} +} +} +} +block_592: +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__2(x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +x_31 = !lean_is_exclusive(x_30); +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_30, 1); +x_33 = lean_ctor_get(x_30, 0); +lean_dec(x_33); +x_34 = lean_box(0); +lean_inc(x_4); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 1, x_34); +lean_ctor_set(x_30, 0, x_4); +x_35 = !lean_is_exclusive(x_4); +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_object* x_42; +x_36 = lean_ctor_get(x_4, 3); +lean_dec(x_36); +x_37 = lean_ctor_get(x_4, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_4, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_4, 0); +lean_dec(x_39); +x_40 = lean_array_mk(x_30); +lean_inc(x_27); +lean_inc(x_40); +lean_inc(x_20); +x_41 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__1___boxed), 12, 4); +lean_closure_set(x_41, 0, x_20); +lean_closure_set(x_41, 1, x_40); +lean_closure_set(x_41, 2, x_34); +lean_closure_set(x_41, 3, x_27); 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_698); -lean_inc(x_595); -x_700 = l_Lean_Elab_Term_applyAttributesAt(x_595, x_698, x_699, x_7, x_8, x_9, x_10, x_11, x_12, x_696); -if (lean_obj_tag(x_700) == 0) +x_42 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars___rarg(x_1, x_2, x_40, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +lean_dec(x_40); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_701; uint8_t x_702; lean_object* x_703; -x_701 = lean_ctor_get(x_700, 1); -lean_inc(x_701); -lean_dec(x_700); -x_702 = 1; -x_703 = l_Lean_Elab_Term_applyAttributesAt(x_595, x_698, x_702, x_7, x_8, x_9, x_10, x_11, x_12, x_701); -return x_703; +lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_43 = lean_ctor_get(x_15, 2); +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_uint8(x_15, sizeof(void*)*9); +x_46 = lean_ctor_get(x_15, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_15, 1); +lean_inc(x_47); +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_43, 2); +lean_dec(x_49); +x_50 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; +lean_ctor_set(x_43, 2, x_50); +x_51 = !lean_is_exclusive(x_15); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 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_52 = lean_ctor_get(x_15, 6); +lean_dec(x_52); +x_53 = lean_ctor_get(x_15, 2); +lean_dec(x_53); +x_54 = lean_ctor_get(x_15, 1); +lean_dec(x_54); +x_55 = lean_ctor_get(x_15, 0); +lean_dec(x_55); +lean_inc(x_23); +x_56 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_44); +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_io_promise_new(x_58); +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 = lean_st_ref_take(x_12, x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_63, 6); +lean_inc(x_64); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +x_66 = !lean_is_exclusive(x_63); +if (x_66 == 0) +{ +lean_object* x_67; uint8_t x_68; +x_67 = lean_ctor_get(x_63, 6); +lean_dec(x_67); +x_68 = !lean_is_exclusive(x_64); +if (x_68 == 0) +{ +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_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; uint8_t x_107; lean_object* x_108; +x_69 = lean_ctor_get(x_64, 1); +x_70 = lean_ctor_get(x_64, 2); +x_71 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_71, 0, x_34); +x_72 = lean_io_promise_result_opt(x_60); +x_73 = l_Task_Priority_default; +x_74 = 1; +x_75 = lean_task_map(x_71, x_72, x_73, x_74); +lean_inc(x_57); +x_76 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_69, x_57, x_75); +x_77 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_77, 0, x_57); +x_78 = l_Lean_PersistentArray_push___rarg(x_70, x_77); +lean_ctor_set(x_64, 2, x_78); +lean_ctor_set(x_64, 1, x_76); +x_79 = lean_st_ref_set(x_12, x_63, x_65); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec(x_79); +x_81 = l_IO_CancelToken_new(x_80); +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_26); +x_84 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_84, 0, x_27); +lean_closure_set(x_84, 1, x_4); +lean_closure_set(x_84, 2, x_34); +lean_closure_set(x_84, 3, x_1); +lean_closure_set(x_84, 4, x_2); +lean_closure_set(x_84, 5, x_3); +lean_closure_set(x_84, 6, x_23); +lean_closure_set(x_84, 7, x_60); +lean_closure_set(x_84, 8, x_26); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_82); +x_86 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_87 = l_Lean_Name_toString(x_26, x_74, x_86); +x_88 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_89 = lean_string_append(x_88, x_87); +lean_dec(x_87); +x_90 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_91 = lean_string_append(x_89, x_90); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_85); +x_92 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_84, x_85, x_91, x_7, x_8, x_9, x_10, x_11, x_12, x_83); +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); +x_96 = lean_apply_1(x_93, x_95); +x_97 = lean_io_as_task(x_96, x_73, x_94); +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_box(0); +x_101 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_102 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +lean_ctor_set(x_102, 2, x_85); +lean_ctor_set(x_102, 3, x_98); +x_103 = l_Lean_Core_logSnapshotTask(x_102, x_11, x_12, x_99); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +x_105 = lean_ctor_get(x_5, 2); +lean_inc(x_105); +lean_dec(x_5); +x_106 = lean_ctor_get(x_105, 2); +lean_inc(x_106); +lean_dec(x_105); +x_107 = 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_106); +lean_inc(x_26); +x_108 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_106, x_107, x_7, x_8, x_9, x_10, x_11, x_12, x_104); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; uint8_t x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_108, 1); +lean_inc(x_109); +lean_dec(x_108); +x_110 = 1; +x_111 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_106, x_110, x_7, x_8, x_9, x_10, x_11, x_12, x_109); +return x_111; } else { -lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; -lean_dec(x_698); -lean_dec(x_595); +uint8_t x_112; +lean_dec(x_106); +lean_dec(x_26); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_704 = lean_ctor_get(x_700, 0); -lean_inc(x_704); -x_705 = lean_ctor_get(x_700, 1); -lean_inc(x_705); -if (lean_is_exclusive(x_700)) { - lean_ctor_release(x_700, 0); - lean_ctor_release(x_700, 1); - x_706 = x_700; -} else { - lean_dec_ref(x_700); - x_706 = lean_box(0); +x_112 = !lean_is_exclusive(x_108); +if (x_112 == 0) +{ +return x_108; } -if (lean_is_scalar(x_706)) { - x_707 = lean_alloc_ctor(1, 2, 0); -} else { - x_707 = x_706; +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_108, 0); +x_114 = lean_ctor_get(x_108, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_108); +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; } -lean_ctor_set(x_707, 0, x_704); -lean_ctor_set(x_707, 1, 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_600); -lean_dec(x_595); +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; 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; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; lean_object* x_158; +x_116 = lean_ctor_get_uint8(x_64, sizeof(void*)*3); +x_117 = lean_ctor_get(x_64, 0); +x_118 = lean_ctor_get(x_64, 1); +x_119 = lean_ctor_get(x_64, 2); +lean_inc(x_119); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_64); +x_120 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_120, 0, x_34); +x_121 = lean_io_promise_result_opt(x_60); +x_122 = l_Task_Priority_default; +x_123 = 1; +x_124 = lean_task_map(x_120, x_121, x_122, x_123); +lean_inc(x_57); +x_125 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_118, x_57, x_124); +x_126 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_126, 0, x_57); +x_127 = l_Lean_PersistentArray_push___rarg(x_119, x_126); +x_128 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_128, 0, x_117); +lean_ctor_set(x_128, 1, x_125); +lean_ctor_set(x_128, 2, x_127); +lean_ctor_set_uint8(x_128, sizeof(void*)*3, x_116); +lean_ctor_set(x_63, 6, x_128); +x_129 = lean_st_ref_set(x_12, x_63, x_65); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +x_131 = l_IO_CancelToken_new(x_130); +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_26); +x_134 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_134, 0, x_27); +lean_closure_set(x_134, 1, x_4); +lean_closure_set(x_134, 2, x_34); +lean_closure_set(x_134, 3, x_1); +lean_closure_set(x_134, 4, x_2); +lean_closure_set(x_134, 5, x_3); +lean_closure_set(x_134, 6, x_23); +lean_closure_set(x_134, 7, x_60); +lean_closure_set(x_134, 8, x_26); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_132); +x_136 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_137 = l_Lean_Name_toString(x_26, x_123, x_136); +x_138 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_139 = lean_string_append(x_138, x_137); +lean_dec(x_137); +x_140 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_141 = lean_string_append(x_139, x_140); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_135); +x_142 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_134, x_135, x_141, x_7, x_8, x_9, x_10, x_11, x_12, x_133); +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_box(0); +x_146 = lean_apply_1(x_143, x_145); +x_147 = lean_io_as_task(x_146, x_122, 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_box(0); +x_151 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_152 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set(x_152, 2, x_135); +lean_ctor_set(x_152, 3, x_148); +x_153 = l_Lean_Core_logSnapshotTask(x_152, x_11, x_12, x_149); +x_154 = lean_ctor_get(x_153, 1); +lean_inc(x_154); +lean_dec(x_153); +x_155 = lean_ctor_get(x_5, 2); +lean_inc(x_155); +lean_dec(x_5); +x_156 = lean_ctor_get(x_155, 2); +lean_inc(x_156); +lean_dec(x_155); +x_157 = 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_156); +lean_inc(x_26); +x_158 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_156, x_157, x_7, x_8, x_9, x_10, x_11, x_12, x_154); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_159; uint8_t x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = 1; +x_161 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_156, x_160, x_7, x_8, x_9, x_10, x_11, x_12, x_159); +return x_161; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_156); +lean_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_162 = lean_ctor_get(x_158, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_158, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_164 = x_158; +} else { + lean_dec_ref(x_158); + 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_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_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_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; uint8_t x_216; lean_object* x_217; +x_166 = lean_ctor_get(x_63, 0); +x_167 = lean_ctor_get(x_63, 1); +x_168 = lean_ctor_get(x_63, 2); +x_169 = lean_ctor_get(x_63, 3); +x_170 = lean_ctor_get(x_63, 4); +x_171 = lean_ctor_get(x_63, 5); +x_172 = lean_ctor_get(x_63, 7); +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_63); +x_173 = lean_ctor_get_uint8(x_64, sizeof(void*)*3); +x_174 = lean_ctor_get(x_64, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_64, 1); +lean_inc(x_175); +x_176 = lean_ctor_get(x_64, 2); +lean_inc(x_176); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + lean_ctor_release(x_64, 2); + x_177 = x_64; +} else { + lean_dec_ref(x_64); + x_177 = lean_box(0); +} +x_178 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_178, 0, x_34); +x_179 = lean_io_promise_result_opt(x_60); +x_180 = l_Task_Priority_default; +x_181 = 1; +x_182 = lean_task_map(x_178, x_179, x_180, x_181); +lean_inc(x_57); +x_183 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_175, x_57, x_182); +x_184 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_184, 0, x_57); +x_185 = l_Lean_PersistentArray_push___rarg(x_176, x_184); +if (lean_is_scalar(x_177)) { + x_186 = lean_alloc_ctor(0, 3, 1); +} else { + x_186 = x_177; +} +lean_ctor_set(x_186, 0, x_174); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*3, x_173); +x_187 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_187, 0, x_166); +lean_ctor_set(x_187, 1, x_167); +lean_ctor_set(x_187, 2, x_168); +lean_ctor_set(x_187, 3, x_169); +lean_ctor_set(x_187, 4, x_170); +lean_ctor_set(x_187, 5, x_171); +lean_ctor_set(x_187, 6, x_186); +lean_ctor_set(x_187, 7, x_172); +x_188 = lean_st_ref_set(x_12, x_187, x_65); +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +lean_dec(x_188); +x_190 = l_IO_CancelToken_new(x_189); +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); +lean_inc(x_26); +x_193 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_193, 0, x_27); +lean_closure_set(x_193, 1, x_4); +lean_closure_set(x_193, 2, x_34); +lean_closure_set(x_193, 3, x_1); +lean_closure_set(x_193, 4, x_2); +lean_closure_set(x_193, 5, x_3); +lean_closure_set(x_193, 6, x_23); +lean_closure_set(x_193, 7, x_60); +lean_closure_set(x_193, 8, x_26); +x_194 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_194, 0, x_191); +x_195 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_196 = l_Lean_Name_toString(x_26, x_181, x_195); +x_197 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_198 = lean_string_append(x_197, x_196); +lean_dec(x_196); +x_199 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_200 = lean_string_append(x_198, x_199); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_194); +x_201 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_193, x_194, x_200, x_7, x_8, x_9, x_10, x_11, x_12, x_192); +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 = lean_box(0); +x_205 = lean_apply_1(x_202, x_204); +x_206 = lean_io_as_task(x_205, x_180, x_203); +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_209 = lean_box(0); +x_210 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_211 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +lean_ctor_set(x_211, 2, x_194); +lean_ctor_set(x_211, 3, x_207); +x_212 = l_Lean_Core_logSnapshotTask(x_211, x_11, x_12, x_208); +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +lean_dec(x_212); +x_214 = lean_ctor_get(x_5, 2); +lean_inc(x_214); +lean_dec(x_5); +x_215 = lean_ctor_get(x_214, 2); +lean_inc(x_215); +lean_dec(x_214); +x_216 = 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_215); +lean_inc(x_26); +x_217 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_215, x_216, x_7, x_8, x_9, x_10, x_11, x_12, x_213); +if (lean_obj_tag(x_217) == 0) +{ +lean_object* x_218; uint8_t x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_217, 1); +lean_inc(x_218); +lean_dec(x_217); +x_219 = 1; +x_220 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_215, x_219, x_7, x_8, x_9, x_10, x_11, x_12, x_218); +return x_220; +} +else +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_215); +lean_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_221 = lean_ctor_get(x_217, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_217, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_223 = x_217; +} else { + lean_dec_ref(x_217); + x_223 = lean_box(0); +} +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(1, 2, 0); +} else { + x_224 = x_223; +} +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; +} +} +} +else +{ +lean_object* x_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; uint8_t x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; lean_object* x_293; +x_225 = lean_ctor_get(x_15, 3); +x_226 = lean_ctor_get(x_15, 4); +x_227 = lean_ctor_get(x_15, 5); +x_228 = lean_ctor_get(x_15, 7); +x_229 = lean_ctor_get(x_15, 8); +lean_inc(x_229); +lean_inc(x_228); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_15); +lean_inc(x_23); +x_230 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_230, 0, x_46); +lean_ctor_set(x_230, 1, x_47); +lean_ctor_set(x_230, 2, x_43); +lean_ctor_set(x_230, 3, x_225); +lean_ctor_set(x_230, 4, x_226); +lean_ctor_set(x_230, 5, x_227); +lean_ctor_set(x_230, 6, x_23); +lean_ctor_set(x_230, 7, x_228); +lean_ctor_set(x_230, 8, x_229); +lean_ctor_set_uint8(x_230, sizeof(void*)*9, x_45); +lean_ctor_set(x_4, 0, x_230); +x_231 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_44); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_231, 1); +lean_inc(x_233); +lean_dec(x_231); +x_234 = lean_io_promise_new(x_233); +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 = lean_st_ref_take(x_12, x_236); +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_238, 6); +lean_inc(x_239); +x_240 = lean_ctor_get(x_237, 1); +lean_inc(x_240); +lean_dec(x_237); +x_241 = lean_ctor_get(x_238, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_238, 1); +lean_inc(x_242); +x_243 = lean_ctor_get(x_238, 2); +lean_inc(x_243); +x_244 = lean_ctor_get(x_238, 3); +lean_inc(x_244); +x_245 = lean_ctor_get(x_238, 4); +lean_inc(x_245); +x_246 = lean_ctor_get(x_238, 5); +lean_inc(x_246); +x_247 = lean_ctor_get(x_238, 7); +lean_inc(x_247); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + lean_ctor_release(x_238, 2); + lean_ctor_release(x_238, 3); + lean_ctor_release(x_238, 4); + lean_ctor_release(x_238, 5); + lean_ctor_release(x_238, 6); + lean_ctor_release(x_238, 7); + x_248 = x_238; +} else { + lean_dec_ref(x_238); + x_248 = lean_box(0); +} +x_249 = lean_ctor_get_uint8(x_239, sizeof(void*)*3); +x_250 = lean_ctor_get(x_239, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_239, 1); +lean_inc(x_251); +x_252 = lean_ctor_get(x_239, 2); +lean_inc(x_252); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + lean_ctor_release(x_239, 2); + x_253 = x_239; +} else { + lean_dec_ref(x_239); + x_253 = lean_box(0); +} +x_254 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_254, 0, x_34); +x_255 = lean_io_promise_result_opt(x_235); +x_256 = l_Task_Priority_default; +x_257 = 1; +x_258 = lean_task_map(x_254, x_255, x_256, x_257); +lean_inc(x_232); +x_259 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_251, x_232, x_258); +x_260 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_260, 0, x_232); +x_261 = l_Lean_PersistentArray_push___rarg(x_252, x_260); +if (lean_is_scalar(x_253)) { + x_262 = lean_alloc_ctor(0, 3, 1); +} else { + x_262 = x_253; +} +lean_ctor_set(x_262, 0, x_250); +lean_ctor_set(x_262, 1, x_259); +lean_ctor_set(x_262, 2, x_261); +lean_ctor_set_uint8(x_262, sizeof(void*)*3, x_249); +if (lean_is_scalar(x_248)) { + x_263 = lean_alloc_ctor(0, 8, 0); +} else { + x_263 = x_248; +} +lean_ctor_set(x_263, 0, x_241); +lean_ctor_set(x_263, 1, x_242); +lean_ctor_set(x_263, 2, x_243); +lean_ctor_set(x_263, 3, x_244); +lean_ctor_set(x_263, 4, x_245); +lean_ctor_set(x_263, 5, x_246); +lean_ctor_set(x_263, 6, x_262); +lean_ctor_set(x_263, 7, x_247); +x_264 = lean_st_ref_set(x_12, x_263, x_240); +x_265 = lean_ctor_get(x_264, 1); +lean_inc(x_265); +lean_dec(x_264); +x_266 = l_IO_CancelToken_new(x_265); +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); +lean_inc(x_26); +x_269 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_269, 0, x_27); +lean_closure_set(x_269, 1, x_4); +lean_closure_set(x_269, 2, x_34); +lean_closure_set(x_269, 3, x_1); +lean_closure_set(x_269, 4, x_2); +lean_closure_set(x_269, 5, x_3); +lean_closure_set(x_269, 6, x_23); +lean_closure_set(x_269, 7, x_235); +lean_closure_set(x_269, 8, x_26); +x_270 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_270, 0, x_267); +x_271 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_272 = l_Lean_Name_toString(x_26, x_257, x_271); +x_273 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_274 = lean_string_append(x_273, x_272); +lean_dec(x_272); +x_275 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_276 = lean_string_append(x_274, x_275); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_270); +x_277 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_269, x_270, x_276, x_7, x_8, x_9, x_10, x_11, x_12, x_268); +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +lean_dec(x_277); +x_280 = lean_box(0); +x_281 = lean_apply_1(x_278, x_280); +x_282 = lean_io_as_task(x_281, x_256, x_279); +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_box(0); +x_286 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_287 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_287, 0, x_285); +lean_ctor_set(x_287, 1, x_286); +lean_ctor_set(x_287, 2, x_270); +lean_ctor_set(x_287, 3, x_283); +x_288 = l_Lean_Core_logSnapshotTask(x_287, x_11, x_12, x_284); +x_289 = lean_ctor_get(x_288, 1); +lean_inc(x_289); +lean_dec(x_288); +x_290 = lean_ctor_get(x_5, 2); +lean_inc(x_290); +lean_dec(x_5); +x_291 = lean_ctor_get(x_290, 2); +lean_inc(x_291); +lean_dec(x_290); +x_292 = 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_291); +lean_inc(x_26); +x_293 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_291, x_292, x_7, x_8, x_9, x_10, x_11, x_12, x_289); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; uint8_t x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_293, 1); +lean_inc(x_294); +lean_dec(x_293); +x_295 = 1; +x_296 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_291, x_295, x_7, x_8, x_9, x_10, x_11, x_12, x_294); +return x_296; +} +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +lean_dec(x_291); +lean_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_297 = lean_ctor_get(x_293, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_293, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_299 = x_293; +} else { + lean_dec_ref(x_293); + x_299 = lean_box(0); +} +if (lean_is_scalar(x_299)) { + x_300 = lean_alloc_ctor(1, 2, 0); +} else { + x_300 = x_299; +} +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_298); +return x_300; +} +} +} +else +{ +lean_object* x_301; lean_object* x_302; uint8_t x_303; uint8_t x_304; uint8_t x_305; uint8_t 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; uint8_t 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; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; +x_301 = lean_ctor_get(x_43, 0); +x_302 = lean_ctor_get(x_43, 1); +x_303 = lean_ctor_get_uint8(x_43, sizeof(void*)*3); +x_304 = lean_ctor_get_uint8(x_43, sizeof(void*)*3 + 1); +x_305 = lean_ctor_get_uint8(x_43, sizeof(void*)*3 + 2); +x_306 = lean_ctor_get_uint8(x_43, sizeof(void*)*3 + 3); +lean_inc(x_302); +lean_inc(x_301); +lean_dec(x_43); +x_307 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; +x_308 = lean_alloc_ctor(0, 3, 4); +lean_ctor_set(x_308, 0, x_301); +lean_ctor_set(x_308, 1, x_302); +lean_ctor_set(x_308, 2, x_307); +lean_ctor_set_uint8(x_308, sizeof(void*)*3, x_303); +lean_ctor_set_uint8(x_308, sizeof(void*)*3 + 1, x_304); +lean_ctor_set_uint8(x_308, sizeof(void*)*3 + 2, x_305); +lean_ctor_set_uint8(x_308, sizeof(void*)*3 + 3, x_306); +x_309 = lean_ctor_get(x_15, 3); +lean_inc(x_309); +x_310 = lean_ctor_get(x_15, 4); +lean_inc(x_310); +x_311 = lean_ctor_get(x_15, 5); +lean_inc(x_311); +x_312 = lean_ctor_get(x_15, 7); +lean_inc(x_312); +x_313 = lean_ctor_get(x_15, 8); +lean_inc(x_313); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + lean_ctor_release(x_15, 3); + lean_ctor_release(x_15, 4); + lean_ctor_release(x_15, 5); + lean_ctor_release(x_15, 6); + lean_ctor_release(x_15, 7); + lean_ctor_release(x_15, 8); + x_314 = x_15; +} else { + lean_dec_ref(x_15); + x_314 = lean_box(0); +} +lean_inc(x_23); +if (lean_is_scalar(x_314)) { + x_315 = lean_alloc_ctor(0, 9, 1); +} else { + x_315 = x_314; +} +lean_ctor_set(x_315, 0, x_46); +lean_ctor_set(x_315, 1, x_47); +lean_ctor_set(x_315, 2, x_308); +lean_ctor_set(x_315, 3, x_309); +lean_ctor_set(x_315, 4, x_310); +lean_ctor_set(x_315, 5, x_311); +lean_ctor_set(x_315, 6, x_23); +lean_ctor_set(x_315, 7, x_312); +lean_ctor_set(x_315, 8, x_313); +lean_ctor_set_uint8(x_315, sizeof(void*)*9, x_45); +lean_ctor_set(x_4, 0, x_315); +x_316 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_44); +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_io_promise_new(x_318); +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_st_ref_take(x_12, x_321); +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_323, 6); +lean_inc(x_324); +x_325 = lean_ctor_get(x_322, 1); +lean_inc(x_325); +lean_dec(x_322); +x_326 = lean_ctor_get(x_323, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_323, 1); +lean_inc(x_327); +x_328 = lean_ctor_get(x_323, 2); +lean_inc(x_328); +x_329 = lean_ctor_get(x_323, 3); +lean_inc(x_329); +x_330 = lean_ctor_get(x_323, 4); +lean_inc(x_330); +x_331 = lean_ctor_get(x_323, 5); +lean_inc(x_331); +x_332 = lean_ctor_get(x_323, 7); +lean_inc(x_332); +if (lean_is_exclusive(x_323)) { + lean_ctor_release(x_323, 0); + lean_ctor_release(x_323, 1); + lean_ctor_release(x_323, 2); + lean_ctor_release(x_323, 3); + lean_ctor_release(x_323, 4); + lean_ctor_release(x_323, 5); + lean_ctor_release(x_323, 6); + lean_ctor_release(x_323, 7); + x_333 = x_323; +} else { + lean_dec_ref(x_323); + x_333 = lean_box(0); +} +x_334 = lean_ctor_get_uint8(x_324, sizeof(void*)*3); +x_335 = lean_ctor_get(x_324, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_324, 1); +lean_inc(x_336); +x_337 = lean_ctor_get(x_324, 2); +lean_inc(x_337); +if (lean_is_exclusive(x_324)) { + lean_ctor_release(x_324, 0); + lean_ctor_release(x_324, 1); + lean_ctor_release(x_324, 2); + x_338 = x_324; +} else { + lean_dec_ref(x_324); + x_338 = lean_box(0); +} +x_339 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_339, 0, x_34); +x_340 = lean_io_promise_result_opt(x_320); +x_341 = l_Task_Priority_default; +x_342 = 1; +x_343 = lean_task_map(x_339, x_340, x_341, x_342); +lean_inc(x_317); +x_344 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_336, x_317, x_343); +x_345 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_345, 0, x_317); +x_346 = l_Lean_PersistentArray_push___rarg(x_337, x_345); +if (lean_is_scalar(x_338)) { + x_347 = lean_alloc_ctor(0, 3, 1); +} else { + x_347 = x_338; +} +lean_ctor_set(x_347, 0, x_335); +lean_ctor_set(x_347, 1, x_344); +lean_ctor_set(x_347, 2, x_346); +lean_ctor_set_uint8(x_347, sizeof(void*)*3, x_334); +if (lean_is_scalar(x_333)) { + x_348 = lean_alloc_ctor(0, 8, 0); +} else { + x_348 = x_333; +} +lean_ctor_set(x_348, 0, x_326); +lean_ctor_set(x_348, 1, x_327); +lean_ctor_set(x_348, 2, x_328); +lean_ctor_set(x_348, 3, x_329); +lean_ctor_set(x_348, 4, x_330); +lean_ctor_set(x_348, 5, x_331); +lean_ctor_set(x_348, 6, x_347); +lean_ctor_set(x_348, 7, x_332); +x_349 = lean_st_ref_set(x_12, x_348, x_325); +x_350 = lean_ctor_get(x_349, 1); +lean_inc(x_350); +lean_dec(x_349); +x_351 = l_IO_CancelToken_new(x_350); +x_352 = lean_ctor_get(x_351, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 1); +lean_inc(x_353); +lean_dec(x_351); +lean_inc(x_26); +x_354 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_354, 0, x_27); +lean_closure_set(x_354, 1, x_4); +lean_closure_set(x_354, 2, x_34); +lean_closure_set(x_354, 3, x_1); +lean_closure_set(x_354, 4, x_2); +lean_closure_set(x_354, 5, x_3); +lean_closure_set(x_354, 6, x_23); +lean_closure_set(x_354, 7, x_320); +lean_closure_set(x_354, 8, x_26); +x_355 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_355, 0, x_352); +x_356 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_357 = l_Lean_Name_toString(x_26, x_342, x_356); +x_358 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_359 = lean_string_append(x_358, x_357); +lean_dec(x_357); +x_360 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_361 = lean_string_append(x_359, x_360); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_355); +x_362 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_354, x_355, x_361, x_7, x_8, x_9, x_10, x_11, x_12, x_353); +x_363 = lean_ctor_get(x_362, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_362, 1); +lean_inc(x_364); +lean_dec(x_362); +x_365 = lean_box(0); +x_366 = lean_apply_1(x_363, x_365); +x_367 = lean_io_as_task(x_366, x_341, x_364); +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); +x_370 = lean_box(0); +x_371 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_372 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_372, 0, x_370); +lean_ctor_set(x_372, 1, x_371); +lean_ctor_set(x_372, 2, x_355); +lean_ctor_set(x_372, 3, x_368); +x_373 = l_Lean_Core_logSnapshotTask(x_372, x_11, x_12, x_369); +x_374 = lean_ctor_get(x_373, 1); +lean_inc(x_374); +lean_dec(x_373); +x_375 = lean_ctor_get(x_5, 2); +lean_inc(x_375); +lean_dec(x_5); +x_376 = lean_ctor_get(x_375, 2); +lean_inc(x_376); +lean_dec(x_375); +x_377 = 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_376); +lean_inc(x_26); +x_378 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_376, x_377, x_7, x_8, x_9, x_10, x_11, x_12, x_374); +if (lean_obj_tag(x_378) == 0) +{ +lean_object* x_379; uint8_t x_380; lean_object* x_381; +x_379 = lean_ctor_get(x_378, 1); +lean_inc(x_379); +lean_dec(x_378); +x_380 = 1; +x_381 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_376, x_380, x_7, x_8, x_9, x_10, x_11, x_12, x_379); +return x_381; +} +else +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +lean_dec(x_376); +lean_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_382 = lean_ctor_get(x_378, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_378, 1); +lean_inc(x_383); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_384 = x_378; +} else { + lean_dec_ref(x_378); + x_384 = lean_box(0); +} +if (lean_is_scalar(x_384)) { + x_385 = lean_alloc_ctor(1, 2, 0); +} else { + x_385 = x_384; +} +lean_ctor_set(x_385, 0, x_382); +lean_ctor_set(x_385, 1, x_383); +return x_385; +} +} +} +else +{ +uint8_t x_386; +lean_free_object(x_4); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_386 = !lean_is_exclusive(x_42); +if (x_386 == 0) +{ +return x_42; +} +else +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_387 = lean_ctor_get(x_42, 0); +x_388 = lean_ctor_get(x_42, 1); +lean_inc(x_388); +lean_inc(x_387); +lean_dec(x_42); +x_389 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_389, 0, x_387); +lean_ctor_set(x_389, 1, x_388); +return x_389; +} +} +} +else +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; +lean_dec(x_4); +x_390 = lean_array_mk(x_30); +lean_inc(x_27); +lean_inc(x_390); +lean_inc(x_20); +x_391 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__1___boxed), 12, 4); +lean_closure_set(x_391, 0, x_20); +lean_closure_set(x_391, 1, x_390); +lean_closure_set(x_391, 2, x_34); +lean_closure_set(x_391, 3, x_27); +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_392 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars___rarg(x_1, x_2, x_390, x_391, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +lean_dec(x_390); +if (lean_obj_tag(x_392) == 0) +{ +lean_object* x_393; lean_object* x_394; uint8_t x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; uint8_t x_401; uint8_t x_402; uint8_t x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; 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; uint8_t 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; uint8_t 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; 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; lean_object* x_474; lean_object* x_475; uint8_t x_476; lean_object* x_477; +x_393 = lean_ctor_get(x_15, 2); +lean_inc(x_393); +x_394 = lean_ctor_get(x_392, 1); +lean_inc(x_394); +lean_dec(x_392); +x_395 = lean_ctor_get_uint8(x_15, sizeof(void*)*9); +x_396 = lean_ctor_get(x_15, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_15, 1); +lean_inc(x_397); +x_398 = lean_ctor_get(x_393, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_393, 1); +lean_inc(x_399); +x_400 = lean_ctor_get_uint8(x_393, sizeof(void*)*3); +x_401 = lean_ctor_get_uint8(x_393, sizeof(void*)*3 + 1); +x_402 = lean_ctor_get_uint8(x_393, sizeof(void*)*3 + 2); +x_403 = lean_ctor_get_uint8(x_393, sizeof(void*)*3 + 3); +if (lean_is_exclusive(x_393)) { + lean_ctor_release(x_393, 0); + lean_ctor_release(x_393, 1); + lean_ctor_release(x_393, 2); + x_404 = x_393; +} else { + lean_dec_ref(x_393); + x_404 = lean_box(0); +} +x_405 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; +if (lean_is_scalar(x_404)) { + x_406 = lean_alloc_ctor(0, 3, 4); +} else { + x_406 = x_404; +} +lean_ctor_set(x_406, 0, x_398); +lean_ctor_set(x_406, 1, x_399); +lean_ctor_set(x_406, 2, x_405); +lean_ctor_set_uint8(x_406, sizeof(void*)*3, x_400); +lean_ctor_set_uint8(x_406, sizeof(void*)*3 + 1, x_401); +lean_ctor_set_uint8(x_406, sizeof(void*)*3 + 2, x_402); +lean_ctor_set_uint8(x_406, sizeof(void*)*3 + 3, x_403); +x_407 = lean_ctor_get(x_15, 3); +lean_inc(x_407); +x_408 = lean_ctor_get(x_15, 4); +lean_inc(x_408); +x_409 = lean_ctor_get(x_15, 5); +lean_inc(x_409); +x_410 = lean_ctor_get(x_15, 7); +lean_inc(x_410); +x_411 = lean_ctor_get(x_15, 8); +lean_inc(x_411); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + lean_ctor_release(x_15, 3); + lean_ctor_release(x_15, 4); + lean_ctor_release(x_15, 5); + lean_ctor_release(x_15, 6); + lean_ctor_release(x_15, 7); + lean_ctor_release(x_15, 8); + x_412 = x_15; +} else { + lean_dec_ref(x_15); + x_412 = lean_box(0); +} +lean_inc(x_23); +if (lean_is_scalar(x_412)) { + x_413 = lean_alloc_ctor(0, 9, 1); +} else { + x_413 = x_412; +} +lean_ctor_set(x_413, 0, x_396); +lean_ctor_set(x_413, 1, x_397); +lean_ctor_set(x_413, 2, x_406); +lean_ctor_set(x_413, 3, x_407); +lean_ctor_set(x_413, 4, x_408); +lean_ctor_set(x_413, 5, x_409); +lean_ctor_set(x_413, 6, x_23); +lean_ctor_set(x_413, 7, x_410); +lean_ctor_set(x_413, 8, x_411); +lean_ctor_set_uint8(x_413, sizeof(void*)*9, x_395); +x_414 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_20); +lean_ctor_set(x_414, 2, x_21); +lean_ctor_set(x_414, 3, x_22); +x_415 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_394); +x_416 = lean_ctor_get(x_415, 0); +lean_inc(x_416); +x_417 = lean_ctor_get(x_415, 1); +lean_inc(x_417); +lean_dec(x_415); +x_418 = lean_io_promise_new(x_417); +x_419 = lean_ctor_get(x_418, 0); +lean_inc(x_419); +x_420 = lean_ctor_get(x_418, 1); +lean_inc(x_420); +lean_dec(x_418); +x_421 = lean_st_ref_take(x_12, x_420); +x_422 = lean_ctor_get(x_421, 0); +lean_inc(x_422); +x_423 = lean_ctor_get(x_422, 6); +lean_inc(x_423); +x_424 = lean_ctor_get(x_421, 1); +lean_inc(x_424); +lean_dec(x_421); +x_425 = lean_ctor_get(x_422, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_422, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_422, 2); +lean_inc(x_427); +x_428 = lean_ctor_get(x_422, 3); +lean_inc(x_428); +x_429 = lean_ctor_get(x_422, 4); +lean_inc(x_429); +x_430 = lean_ctor_get(x_422, 5); +lean_inc(x_430); +x_431 = lean_ctor_get(x_422, 7); +lean_inc(x_431); +if (lean_is_exclusive(x_422)) { + lean_ctor_release(x_422, 0); + lean_ctor_release(x_422, 1); + lean_ctor_release(x_422, 2); + lean_ctor_release(x_422, 3); + lean_ctor_release(x_422, 4); + lean_ctor_release(x_422, 5); + lean_ctor_release(x_422, 6); + lean_ctor_release(x_422, 7); + x_432 = x_422; +} else { + lean_dec_ref(x_422); + x_432 = lean_box(0); +} +x_433 = lean_ctor_get_uint8(x_423, sizeof(void*)*3); +x_434 = lean_ctor_get(x_423, 0); +lean_inc(x_434); +x_435 = lean_ctor_get(x_423, 1); +lean_inc(x_435); +x_436 = lean_ctor_get(x_423, 2); +lean_inc(x_436); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + lean_ctor_release(x_423, 2); + x_437 = x_423; +} else { + lean_dec_ref(x_423); + x_437 = lean_box(0); +} +x_438 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_438, 0, x_34); +x_439 = lean_io_promise_result_opt(x_419); +x_440 = l_Task_Priority_default; +x_441 = 1; +x_442 = lean_task_map(x_438, x_439, x_440, x_441); +lean_inc(x_416); +x_443 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_435, x_416, x_442); +x_444 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_444, 0, x_416); +x_445 = l_Lean_PersistentArray_push___rarg(x_436, x_444); +if (lean_is_scalar(x_437)) { + x_446 = lean_alloc_ctor(0, 3, 1); +} else { + x_446 = x_437; +} +lean_ctor_set(x_446, 0, x_434); +lean_ctor_set(x_446, 1, x_443); +lean_ctor_set(x_446, 2, x_445); +lean_ctor_set_uint8(x_446, sizeof(void*)*3, x_433); +if (lean_is_scalar(x_432)) { + x_447 = lean_alloc_ctor(0, 8, 0); +} else { + x_447 = x_432; +} +lean_ctor_set(x_447, 0, x_425); +lean_ctor_set(x_447, 1, x_426); +lean_ctor_set(x_447, 2, x_427); +lean_ctor_set(x_447, 3, x_428); +lean_ctor_set(x_447, 4, x_429); +lean_ctor_set(x_447, 5, x_430); +lean_ctor_set(x_447, 6, x_446); +lean_ctor_set(x_447, 7, x_431); +x_448 = lean_st_ref_set(x_12, x_447, x_424); +x_449 = lean_ctor_get(x_448, 1); +lean_inc(x_449); +lean_dec(x_448); +x_450 = l_IO_CancelToken_new(x_449); +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_450, 1); +lean_inc(x_452); +lean_dec(x_450); +lean_inc(x_26); +x_453 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_453, 0, x_27); +lean_closure_set(x_453, 1, x_414); +lean_closure_set(x_453, 2, x_34); +lean_closure_set(x_453, 3, x_1); +lean_closure_set(x_453, 4, x_2); +lean_closure_set(x_453, 5, x_3); +lean_closure_set(x_453, 6, x_23); +lean_closure_set(x_453, 7, x_419); +lean_closure_set(x_453, 8, x_26); +x_454 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_454, 0, x_451); +x_455 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_456 = l_Lean_Name_toString(x_26, x_441, x_455); +x_457 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_458 = lean_string_append(x_457, x_456); +lean_dec(x_456); +x_459 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_460 = lean_string_append(x_458, x_459); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_454); +x_461 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_453, x_454, x_460, x_7, x_8, x_9, x_10, x_11, x_12, x_452); +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 = lean_box(0); +x_465 = lean_apply_1(x_462, x_464); +x_466 = lean_io_as_task(x_465, x_440, x_463); +x_467 = lean_ctor_get(x_466, 0); +lean_inc(x_467); +x_468 = lean_ctor_get(x_466, 1); +lean_inc(x_468); +lean_dec(x_466); +x_469 = lean_box(0); +x_470 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_471 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_471, 0, x_469); +lean_ctor_set(x_471, 1, x_470); +lean_ctor_set(x_471, 2, x_454); +lean_ctor_set(x_471, 3, x_467); +x_472 = l_Lean_Core_logSnapshotTask(x_471, x_11, x_12, x_468); +x_473 = lean_ctor_get(x_472, 1); +lean_inc(x_473); +lean_dec(x_472); +x_474 = lean_ctor_get(x_5, 2); +lean_inc(x_474); +lean_dec(x_5); +x_475 = lean_ctor_get(x_474, 2); +lean_inc(x_475); +lean_dec(x_474); +x_476 = 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_475); +lean_inc(x_26); +x_477 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_475, x_476, x_7, x_8, x_9, x_10, x_11, x_12, x_473); +if (lean_obj_tag(x_477) == 0) +{ +lean_object* x_478; uint8_t x_479; lean_object* x_480; +x_478 = lean_ctor_get(x_477, 1); +lean_inc(x_478); +lean_dec(x_477); +x_479 = 1; +x_480 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_475, x_479, x_7, x_8, x_9, x_10, x_11, x_12, x_478); +return x_480; +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; +lean_dec(x_475); +lean_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_481 = lean_ctor_get(x_477, 0); +lean_inc(x_481); +x_482 = lean_ctor_get(x_477, 1); +lean_inc(x_482); +if (lean_is_exclusive(x_477)) { + lean_ctor_release(x_477, 0); + lean_ctor_release(x_477, 1); + x_483 = x_477; +} else { + lean_dec_ref(x_477); + x_483 = lean_box(0); +} +if (lean_is_scalar(x_483)) { + x_484 = lean_alloc_ctor(1, 2, 0); +} else { + x_484 = x_483; +} +lean_ctor_set(x_484, 0, x_481); +lean_ctor_set(x_484, 1, x_482); +return x_484; +} +} +else +{ +lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_485 = lean_ctor_get(x_392, 0); +lean_inc(x_485); +x_486 = lean_ctor_get(x_392, 1); +lean_inc(x_486); +if (lean_is_exclusive(x_392)) { + lean_ctor_release(x_392, 0); + lean_ctor_release(x_392, 1); + x_487 = x_392; +} else { + lean_dec_ref(x_392); + x_487 = lean_box(0); +} +if (lean_is_scalar(x_487)) { + x_488 = lean_alloc_ctor(1, 2, 0); +} else { + x_488 = x_487; +} +lean_ctor_set(x_488, 0, x_485); +lean_ctor_set(x_488, 1, x_486); +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_30, 1); +lean_inc(x_489); +lean_dec(x_30); +x_490 = lean_box(0); +lean_inc(x_4); +x_491 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_491, 0, x_4); +lean_ctor_set(x_491, 1, x_490); +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); + x_492 = x_4; +} else { + lean_dec_ref(x_4); + x_492 = lean_box(0); +} +x_493 = lean_array_mk(x_491); +lean_inc(x_27); +lean_inc(x_493); +lean_inc(x_20); +x_494 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__1___boxed), 12, 4); +lean_closure_set(x_494, 0, x_20); +lean_closure_set(x_494, 1, x_493); +lean_closure_set(x_494, 2, x_490); +lean_closure_set(x_494, 3, x_27); +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_495 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withHeaderSecVars___rarg(x_1, x_2, x_493, x_494, x_7, x_8, x_9, x_10, x_11, x_12, x_489); +lean_dec(x_493); +if (lean_obj_tag(x_495) == 0) +{ +lean_object* x_496; lean_object* x_497; uint8_t x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; uint8_t x_504; uint8_t x_505; uint8_t 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; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; uint8_t 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; uint8_t 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; 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; uint8_t x_579; lean_object* x_580; +x_496 = lean_ctor_get(x_15, 2); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +x_498 = lean_ctor_get_uint8(x_15, sizeof(void*)*9); +x_499 = lean_ctor_get(x_15, 0); +lean_inc(x_499); +x_500 = lean_ctor_get(x_15, 1); +lean_inc(x_500); +x_501 = lean_ctor_get(x_496, 0); +lean_inc(x_501); +x_502 = lean_ctor_get(x_496, 1); +lean_inc(x_502); +x_503 = lean_ctor_get_uint8(x_496, sizeof(void*)*3); +x_504 = lean_ctor_get_uint8(x_496, sizeof(void*)*3 + 1); +x_505 = lean_ctor_get_uint8(x_496, sizeof(void*)*3 + 2); +x_506 = lean_ctor_get_uint8(x_496, sizeof(void*)*3 + 3); +if (lean_is_exclusive(x_496)) { + lean_ctor_release(x_496, 0); + lean_ctor_release(x_496, 1); + lean_ctor_release(x_496, 2); + x_507 = x_496; +} else { + lean_dec_ref(x_496); + x_507 = lean_box(0); +} +x_508 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___closed__1; +if (lean_is_scalar(x_507)) { + x_509 = lean_alloc_ctor(0, 3, 4); +} else { + x_509 = x_507; +} +lean_ctor_set(x_509, 0, x_501); +lean_ctor_set(x_509, 1, x_502); +lean_ctor_set(x_509, 2, x_508); +lean_ctor_set_uint8(x_509, sizeof(void*)*3, x_503); +lean_ctor_set_uint8(x_509, sizeof(void*)*3 + 1, x_504); +lean_ctor_set_uint8(x_509, sizeof(void*)*3 + 2, x_505); +lean_ctor_set_uint8(x_509, sizeof(void*)*3 + 3, x_506); +x_510 = lean_ctor_get(x_15, 3); +lean_inc(x_510); +x_511 = lean_ctor_get(x_15, 4); +lean_inc(x_511); +x_512 = lean_ctor_get(x_15, 5); +lean_inc(x_512); +x_513 = lean_ctor_get(x_15, 7); +lean_inc(x_513); +x_514 = lean_ctor_get(x_15, 8); +lean_inc(x_514); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + lean_ctor_release(x_15, 3); + lean_ctor_release(x_15, 4); + lean_ctor_release(x_15, 5); + lean_ctor_release(x_15, 6); + lean_ctor_release(x_15, 7); + lean_ctor_release(x_15, 8); + x_515 = x_15; +} else { + lean_dec_ref(x_15); + x_515 = lean_box(0); +} +lean_inc(x_23); +if (lean_is_scalar(x_515)) { + x_516 = lean_alloc_ctor(0, 9, 1); +} else { + x_516 = x_515; +} +lean_ctor_set(x_516, 0, x_499); +lean_ctor_set(x_516, 1, x_500); +lean_ctor_set(x_516, 2, x_509); +lean_ctor_set(x_516, 3, x_510); +lean_ctor_set(x_516, 4, x_511); +lean_ctor_set(x_516, 5, x_512); +lean_ctor_set(x_516, 6, x_23); +lean_ctor_set(x_516, 7, x_513); +lean_ctor_set(x_516, 8, x_514); +lean_ctor_set_uint8(x_516, sizeof(void*)*9, x_498); +if (lean_is_scalar(x_492)) { + x_517 = lean_alloc_ctor(0, 4, 0); +} else { + x_517 = x_492; +} +lean_ctor_set(x_517, 0, x_516); +lean_ctor_set(x_517, 1, x_20); +lean_ctor_set(x_517, 2, x_21); +lean_ctor_set(x_517, 3, x_22); +x_518 = l_Lean_mkFreshMVarId___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__2___rarg(x_12, x_497); +x_519 = lean_ctor_get(x_518, 0); +lean_inc(x_519); +x_520 = lean_ctor_get(x_518, 1); +lean_inc(x_520); +lean_dec(x_518); +x_521 = lean_io_promise_new(x_520); +x_522 = lean_ctor_get(x_521, 0); +lean_inc(x_522); +x_523 = lean_ctor_get(x_521, 1); +lean_inc(x_523); +lean_dec(x_521); +x_524 = lean_st_ref_take(x_12, x_523); +x_525 = lean_ctor_get(x_524, 0); +lean_inc(x_525); +x_526 = lean_ctor_get(x_525, 6); +lean_inc(x_526); +x_527 = lean_ctor_get(x_524, 1); +lean_inc(x_527); +lean_dec(x_524); +x_528 = lean_ctor_get(x_525, 0); +lean_inc(x_528); +x_529 = lean_ctor_get(x_525, 1); +lean_inc(x_529); +x_530 = lean_ctor_get(x_525, 2); +lean_inc(x_530); +x_531 = lean_ctor_get(x_525, 3); +lean_inc(x_531); +x_532 = lean_ctor_get(x_525, 4); +lean_inc(x_532); +x_533 = lean_ctor_get(x_525, 5); +lean_inc(x_533); +x_534 = lean_ctor_get(x_525, 7); +lean_inc(x_534); +if (lean_is_exclusive(x_525)) { + lean_ctor_release(x_525, 0); + lean_ctor_release(x_525, 1); + lean_ctor_release(x_525, 2); + lean_ctor_release(x_525, 3); + lean_ctor_release(x_525, 4); + lean_ctor_release(x_525, 5); + lean_ctor_release(x_525, 6); + lean_ctor_release(x_525, 7); + x_535 = x_525; +} else { + lean_dec_ref(x_525); + x_535 = lean_box(0); +} +x_536 = lean_ctor_get_uint8(x_526, sizeof(void*)*3); +x_537 = lean_ctor_get(x_526, 0); +lean_inc(x_537); +x_538 = lean_ctor_get(x_526, 1); +lean_inc(x_538); +x_539 = lean_ctor_get(x_526, 2); +lean_inc(x_539); +if (lean_is_exclusive(x_526)) { + lean_ctor_release(x_526, 0); + lean_ctor_release(x_526, 1); + lean_ctor_release(x_526, 2); + x_540 = x_526; +} else { + lean_dec_ref(x_526); + x_540 = lean_box(0); +} +x_541 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__2___boxed), 2, 1); +lean_closure_set(x_541, 0, x_490); +x_542 = lean_io_promise_result_opt(x_522); +x_543 = l_Task_Priority_default; +x_544 = 1; +x_545 = lean_task_map(x_541, x_542, x_543, x_544); +lean_inc(x_519); +x_546 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__3(x_538, x_519, x_545); +x_547 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_547, 0, x_519); +x_548 = l_Lean_PersistentArray_push___rarg(x_539, x_547); +if (lean_is_scalar(x_540)) { + x_549 = lean_alloc_ctor(0, 3, 1); +} else { + x_549 = x_540; +} +lean_ctor_set(x_549, 0, x_537); +lean_ctor_set(x_549, 1, x_546); +lean_ctor_set(x_549, 2, x_548); +lean_ctor_set_uint8(x_549, sizeof(void*)*3, x_536); +if (lean_is_scalar(x_535)) { + x_550 = lean_alloc_ctor(0, 8, 0); +} else { + x_550 = x_535; +} +lean_ctor_set(x_550, 0, x_528); +lean_ctor_set(x_550, 1, x_529); +lean_ctor_set(x_550, 2, x_530); +lean_ctor_set(x_550, 3, x_531); +lean_ctor_set(x_550, 4, x_532); +lean_ctor_set(x_550, 5, x_533); +lean_ctor_set(x_550, 6, x_549); +lean_ctor_set(x_550, 7, x_534); +x_551 = lean_st_ref_set(x_12, x_550, x_527); +x_552 = lean_ctor_get(x_551, 1); +lean_inc(x_552); +lean_dec(x_551); +x_553 = l_IO_CancelToken_new(x_552); +x_554 = lean_ctor_get(x_553, 0); +lean_inc(x_554); +x_555 = lean_ctor_get(x_553, 1); +lean_inc(x_555); +lean_dec(x_553); +lean_inc(x_26); +x_556 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__6___boxed), 17, 9); +lean_closure_set(x_556, 0, x_27); +lean_closure_set(x_556, 1, x_517); +lean_closure_set(x_556, 2, x_490); +lean_closure_set(x_556, 3, x_1); +lean_closure_set(x_556, 4, x_2); +lean_closure_set(x_556, 5, x_3); +lean_closure_set(x_556, 6, x_23); +lean_closure_set(x_556, 7, x_522); +lean_closure_set(x_556, 8, x_26); +x_557 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_557, 0, x_554); +x_558 = l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendingMVarErrorMessage___spec__1___closed__1; +lean_inc(x_26); +x_559 = l_Lean_Name_toString(x_26, x_544, x_558); +x_560 = l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1; +x_561 = lean_string_append(x_560, x_559); +lean_dec(x_559); +x_562 = l_Lean_Elab_instantiateMVarsProfiling___closed__1; +x_563 = lean_string_append(x_561, x_562); +lean_inc(x_11); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_557); +x_564 = l_Lean_Elab_Term_wrapAsyncAsSnapshot___rarg(x_556, x_557, x_563, x_7, x_8, x_9, x_10, x_11, x_12, x_555); +x_565 = lean_ctor_get(x_564, 0); +lean_inc(x_565); +x_566 = lean_ctor_get(x_564, 1); +lean_inc(x_566); +lean_dec(x_564); +x_567 = lean_box(0); +x_568 = lean_apply_1(x_565, x_567); +x_569 = lean_io_as_task(x_568, x_543, x_566); +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_box(0); +x_573 = l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3; +x_574 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_574, 0, x_572); +lean_ctor_set(x_574, 1, x_573); +lean_ctor_set(x_574, 2, x_557); +lean_ctor_set(x_574, 3, x_570); +x_575 = l_Lean_Core_logSnapshotTask(x_574, x_11, x_12, x_571); +x_576 = lean_ctor_get(x_575, 1); +lean_inc(x_576); +lean_dec(x_575); +x_577 = lean_ctor_get(x_5, 2); +lean_inc(x_577); +lean_dec(x_5); +x_578 = lean_ctor_get(x_577, 2); +lean_inc(x_578); +lean_dec(x_577); +x_579 = 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_578); +lean_inc(x_26); +x_580 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_578, x_579, x_7, x_8, x_9, x_10, x_11, x_12, x_576); +if (lean_obj_tag(x_580) == 0) +{ +lean_object* x_581; uint8_t x_582; lean_object* x_583; +x_581 = lean_ctor_get(x_580, 1); +lean_inc(x_581); +lean_dec(x_580); +x_582 = 1; +x_583 = l_Lean_Elab_Term_applyAttributesAt(x_26, x_578, x_582, x_7, x_8, x_9, x_10, x_11, x_12, x_581); +return x_583; +} +else +{ +lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; +lean_dec(x_578); +lean_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_584 = lean_ctor_get(x_580, 0); +lean_inc(x_584); +x_585 = lean_ctor_get(x_580, 1); +lean_inc(x_585); +if (lean_is_exclusive(x_580)) { + lean_ctor_release(x_580, 0); + lean_ctor_release(x_580, 1); + x_586 = x_580; +} else { + lean_dec_ref(x_580); + x_586 = lean_box(0); +} +if (lean_is_scalar(x_586)) { + x_587 = lean_alloc_ctor(1, 2, 0); +} else { + x_587 = x_586; +} +lean_ctor_set(x_587, 0, x_584); +lean_ctor_set(x_587, 1, x_585); +return x_587; +} +} +else +{ +lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; +lean_dec(x_492); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_588 = lean_ctor_get(x_495, 0); +lean_inc(x_588); +x_589 = lean_ctor_get(x_495, 1); +lean_inc(x_589); +if (lean_is_exclusive(x_495)) { + lean_ctor_release(x_495, 0); + lean_ctor_release(x_495, 1); + x_590 = x_495; +} else { + lean_dec_ref(x_495); + x_590 = lean_box(0); +} +if (lean_is_scalar(x_590)) { + x_591 = lean_alloc_ctor(1, 2, 0); +} else { + x_591 = x_590; +} +lean_ctor_set(x_591, 0, x_588); +lean_ctor_set(x_591, 1, x_589); +return x_591; +} +} +} +block_614: +{ +uint8_t x_595; uint8_t x_596; uint8_t x_597; lean_object* x_598; +lean_dec(x_594); +x_595 = 1; +x_596 = 2; +x_597 = 1; +lean_inc(x_26); +x_598 = l_Lean_Environment_addConstAsync(x_19, x_26, x_595, x_596, x_597, x_597, x_17); +if (lean_obj_tag(x_598) == 0) +{ +lean_object* x_599; lean_object* x_600; +lean_dec(x_593); +lean_dec(x_18); +x_599 = lean_ctor_get(x_598, 0); +lean_inc(x_599); +x_600 = lean_ctor_get(x_598, 1); +lean_inc(x_600); +lean_dec(x_598); +x_27 = x_599; +x_28 = x_600; +goto block_592; +} +else +{ +uint8_t x_601; +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_15); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -53960,70 +55083,49 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_708 = lean_ctor_get(x_610, 0); -lean_inc(x_708); -x_709 = lean_ctor_get(x_610, 1); -lean_inc(x_709); -if (lean_is_exclusive(x_610)) { - lean_ctor_release(x_610, 0); - lean_ctor_release(x_610, 1); - x_710 = x_610; +x_601 = !lean_is_exclusive(x_598); +if (x_601 == 0) +{ +lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; +x_602 = lean_ctor_get(x_598, 0); +x_603 = lean_io_error_to_string(x_602); +x_604 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_604, 0, x_603); +x_605 = l_Lean_MessageData_ofFormat(x_604); +if (lean_is_scalar(x_18)) { + x_606 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_610); - 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; + x_606 = x_18; } +lean_ctor_set(x_606, 0, x_593); +lean_ctor_set(x_606, 1, x_605); +lean_ctor_set(x_598, 0, x_606); +return x_598; } else { -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_dec(x_595); -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_712 = lean_ctor_get(x_599, 0); -lean_inc(x_712); -x_713 = lean_ctor_get(x_599, 1); -lean_inc(x_713); -if (lean_is_exclusive(x_599)) { - lean_ctor_release(x_599, 0); - lean_ctor_release(x_599, 1); - x_714 = x_599; +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; +x_607 = lean_ctor_get(x_598, 0); +x_608 = lean_ctor_get(x_598, 1); +lean_inc(x_608); +lean_inc(x_607); +lean_dec(x_598); +x_609 = lean_io_error_to_string(x_607); +x_610 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_610, 0, x_609); +x_611 = l_Lean_MessageData_ofFormat(x_610); +if (lean_is_scalar(x_18)) { + x_612 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_599); - x_714 = lean_box(0); + x_612 = x_18; } -x_715 = lean_io_error_to_string(x_712); -x_716 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_716, 0, x_715); -x_717 = l_Lean_MessageData_ofFormat(x_716); -x_718 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_718, 0, x_596); -lean_ctor_set(x_718, 1, x_717); -if (lean_is_scalar(x_714)) { - x_719 = lean_alloc_ctor(1, 2, 0); -} else { - x_719 = x_714; +lean_ctor_set(x_612, 0, x_593); +lean_ctor_set(x_612, 1, x_611); +x_613 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_613, 0, x_612); +lean_ctor_set(x_613, 1, x_608); +return x_613; } -lean_ctor_set(x_719, 0, x_718); -lean_ctor_set(x_719, 1, x_713); -return x_719; } } } @@ -54460,17 +55562,6 @@ x_1 = l_Lean_declRangeExt; return x_1; } } -static lean_object* _init_l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_MutualClosure_main___closed__2; -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_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___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: { @@ -54490,7 +55581,7 @@ x_15 = lean_ctor_get(x_11, 4); lean_dec(x_15); x_16 = l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__1; x_17 = l_Lean_MapDeclarationExtension_insert___rarg(x_16, x_14, x_1, x_2); -x_18 = l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2; +x_18 = l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1; lean_ctor_set(x_11, 4, x_18); lean_ctor_set(x_11, 0, x_17); x_19 = lean_st_ref_set(x_8, x_11, x_12); @@ -54596,7 +55687,7 @@ lean_inc(x_45); lean_dec(x_11); x_52 = l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__1; x_53 = l_Lean_MapDeclarationExtension_insert___rarg(x_52, x_45, x_1, x_2); -x_54 = l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2; +x_54 = l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1; x_55 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_55, 0, x_53); lean_ctor_set(x_55, 1, x_46); @@ -64010,7 +65101,7 @@ lean_dec(x_3); return x_7; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -64020,83 +65111,83 @@ 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_MutualDef___hyg_17944____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__1; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___hyg_5____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_MutualDef___hyg_17944____closed__3() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__2; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__2; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___hyg_5____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_MutualDef___hyg_17944____closed__4() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__3; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__3; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___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_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__5() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__4; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__4; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___hyg_5____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_MutualDef___hyg_17944____closed__6() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__5; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__5; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___hyg_5____closed__14; 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_MutualDef___hyg_17944____closed__7() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__6; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__6; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_MutualDef___hyg_5____closed__16; 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_MutualDef___hyg_17944____closed__8() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____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_MutualDef___hyg_17944____closed__7; -x_2 = lean_unsigned_to_nat(17944u); +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__7; +x_2 = lean_unsigned_to_nat(18177u); 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_MutualDef___hyg_17944_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177_(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_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__8; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__8; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -64803,6 +65894,10 @@ l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__4___closed__1); l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__4___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__4___closed__2(); lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__4___closed__2); +l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1 = _init_l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1(); +lean_mark_persistent(l_Lean_withoutExporting___at_Lean_Elab_Term_elabMutualDef_finishElab___spec__7___closed__1); +l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4___boxed__const__1 = _init_l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4___boxed__const__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_finishElab___lambda__4___boxed__const__1); l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__4___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__4___closed__1(); l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__4___closed__2 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__4___closed__2(); l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__4___closed__3 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Term_elabMutualDef_elabAsync___spec__4___closed__3(); @@ -64821,10 +65916,12 @@ l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3 = _init_l_Lean_ lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_elabAsync___lambda__5___closed__3); l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1 = _init_l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__1); +l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__2 = _init_l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__2); +l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__3 = _init_l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_elabAsync___closed__3); l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__1 = _init_l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__1(); lean_mark_persistent(l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__1); -l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2 = _init_l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2(); -lean_mark_persistent(l_Lean_addDeclarationRanges___at_Lean_Elab_Term_elabMutualDef_go___spec__7___closed__2); l_Lean_Elab_addDeclarationRangesForBuiltin___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__1 = _init_l_Lean_Elab_addDeclarationRangesForBuiltin___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__1(); lean_mark_persistent(l_Lean_Elab_addDeclarationRangesForBuiltin___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__1); l_Lean_Elab_addDeclarationRangesForBuiltin___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__2 = _init_l_Lean_Elab_addDeclarationRangesForBuiltin___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__2(); @@ -64911,23 +66008,23 @@ l_Lean_Elab_Command_elabMutualDef___closed__5 = _init_l_Lean_Elab_Command_elabMu lean_mark_persistent(l_Lean_Elab_Command_elabMutualDef___closed__5); l_Lean_Elab_Command_elabMutualDef___closed__6 = _init_l_Lean_Elab_Command_elabMutualDef___closed__6(); lean_mark_persistent(l_Lean_Elab_Command_elabMutualDef___closed__6); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__3); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__4); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__5); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__6); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__7); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944____closed__8); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_17944_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__3); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__4); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__5); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__6); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__7); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__8(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177____closed__8); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_MutualDef___hyg_18177_(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/PreDefinition/WF/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c index cef02d013f..693f09c44b 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c @@ -15,46 +15,44 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__4___boxed(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_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1(lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo; +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_getEqnsFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__2___boxed(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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___boxed(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___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_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73_(lean_object*); +static lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___closed__1; +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_WF_eqnInfoExt; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3___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_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__3; +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__4; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__5; lean_object* lean_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__5; static lean_object* l_Lean_Elab_WF_registerEqnsInfo___closed__3; uint8_t l_Lean_Elab_DefKind_isTheorem(uint8_t); static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__1; -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__2; +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_registerEqnsInfo(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_registerEqnsInfo___closed__1; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285_(lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__1(lean_object*, size_t, size_t); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__4; -static lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___closed__1; -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__1; -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300____closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__2(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_registerGetEqnsFn(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__3; -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__6; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__7; static lean_object* l_Lean_Elab_WF_registerEqnsInfo___closed__4; @@ -75,12 +73,14 @@ static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo lean_object* lean_array_get_size(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__2; +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__1; static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Eqns_mkEqns(lean_object*, lean_object*, uint8_t, 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_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300_(lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__6; static lean_object* _init_l_Lean_Elab_WF_instInhabitedEqnInfo___closed__1() { _start: { @@ -149,20 +149,18 @@ return x_3; static lean_object* _init_l_Lean_Elab_WF_instInhabitedEqnInfo___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; +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_WF_instInhabitedEqnInfo___closed__4; x_2 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__5; x_3 = lean_box(0); -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__6; -x_6 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_6, 0, x_1); -lean_ctor_set(x_6, 1, x_2); -lean_ctor_set(x_6, 2, x_3); -lean_ctor_set(x_6, 3, x_4); -lean_ctor_set(x_6, 4, x_2); -lean_ctor_set(x_6, 5, x_5); -return x_6; +x_4 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__6; +x_5 = lean_alloc_ctor(0, 5, 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_2); +lean_ctor_set(x_5, 4, x_4); +return x_5; } } static lean_object* _init_l_Lean_Elab_WF_instInhabitedEqnInfo() { @@ -173,7 +171,7 @@ x_1 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__7; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -187,7 +185,7 @@ x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_ctor_get(x_2, 3); -x_7 = l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2(x_1, x_3); +x_7 = l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2(x_1, x_3); lean_inc(x_5); lean_inc(x_4); x_8 = lean_alloc_ctor(0, 2, 0); @@ -200,7 +198,7 @@ goto _start; } } } -static lean_object* _init_l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___closed__1() { +static lean_object* _init_l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -209,16 +207,16 @@ x_2 = lean_array_mk(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___closed__1; -x_3 = l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2(x_2, x_1); +x_2 = l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___closed__1; +x_3 = l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__1() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__1() { _start: { lean_object* x_1; @@ -226,7 +224,7 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__2() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__2() { _start: { lean_object* x_1; @@ -234,7 +232,7 @@ x_1 = lean_mk_string_unchecked("Elab", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__3() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__3() { _start: { lean_object* x_1; @@ -242,7 +240,7 @@ x_1 = lean_mk_string_unchecked("WF", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__4() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__4() { _start: { lean_object* x_1; @@ -250,50 +248,50 @@ x_1 = lean_mk_string_unchecked("eqnInfoExt", 10, 10); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__5() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____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_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__1; -x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__2; -x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__3; -x_4 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__4; +x_1 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__1; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__2; +x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__3; +x_4 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__6() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__6() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___boxed), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__5; -x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__6; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__5; +x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__6; x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__2(x_1, x_2); +x_3 = l_Lean_RBNode_fold___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__2(x_1, x_2); lean_dec(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1(x_1); +x_2 = l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1(x_1); lean_dec(x_1); return x_2; } @@ -368,58 +366,55 @@ x_1 = l_Lean_Elab_WF_eqnInfoExt; return x_1; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___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, size_t x_7, size_t x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8) { _start: { -uint8_t x_10; -x_10 = lean_usize_dec_eq(x_7, x_8); -if (x_10 == 0) +uint8_t x_9; +x_9 = lean_usize_dec_eq(x_6, x_7); +if (x_9 == 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; size_t x_20; size_t x_21; -x_11 = lean_array_uget(x_6, x_7); -x_12 = lean_ctor_get(x_11, 3); +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; size_t x_19; size_t x_20; +x_10 = lean_array_uget(x_5, x_6); +x_11 = lean_ctor_get(x_10, 3); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +x_13 = lean_ctor_get(x_10, 4); lean_inc(x_13); -x_14 = lean_ctor_get(x_11, 4); +x_14 = lean_ctor_get(x_10, 5); lean_inc(x_14); -x_15 = lean_ctor_get(x_11, 5); -lean_inc(x_15); -lean_dec(x_11); -lean_inc(x_12); -x_16 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_13); -lean_ctor_set(x_16, 2, x_14); -lean_ctor_set(x_16, 3, x_15); +lean_dec(x_10); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_12); +lean_ctor_set(x_15, 2, x_13); +lean_ctor_set(x_15, 3, x_14); lean_inc(x_2); lean_inc(x_3); -lean_inc(x_4); lean_inc(x_1); -lean_inc(x_5); -x_17 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_5); -lean_ctor_set(x_17, 2, x_1); -lean_ctor_set(x_17, 3, x_4); -lean_ctor_set(x_17, 4, x_3); -lean_ctor_set(x_17, 5, x_2); -x_18 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3___closed__1; -x_19 = l_Lean_MapDeclarationExtension_insert___rarg(x_18, x_9, x_12, x_17); -x_20 = 1; -x_21 = lean_usize_add(x_7, x_20); -x_7 = x_21; -x_9 = x_19; +lean_inc(x_4); +x_16 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_4); +lean_ctor_set(x_16, 2, x_1); +lean_ctor_set(x_16, 3, x_3); +lean_ctor_set(x_16, 4, x_2); +x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3___closed__1; +x_18 = l_Lean_MapDeclarationExtension_insert___rarg(x_17, x_8, x_11, x_16); +x_19 = 1; +x_20 = lean_usize_add(x_6, x_19); +x_6 = x_20; +x_8 = x_18; goto _start; } else { -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_9; +return x_8; } } } @@ -644,46 +639,43 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Elab_WF_registerEqnsInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_84; uint8_t x_85; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -x_11 = lean_array_get_size(x_1); -x_84 = lean_unsigned_to_nat(0u); -x_85 = lean_nat_dec_lt(x_84, x_11); +lean_object* x_10; lean_object* x_11; lean_object* x_83; uint8_t x_84; +x_10 = lean_array_get_size(x_1); +x_83 = lean_unsigned_to_nat(0u); +x_84 = lean_nat_dec_lt(x_83, x_10); +if (x_84 == 0) +{ +x_11 = x_9; +goto block_82; +} +else +{ +uint8_t x_85; +x_85 = lean_nat_dec_le(x_10, x_10); if (x_85 == 0) { -x_12 = x_9; -goto block_83; +x_11 = x_9; +goto block_82; } else { -uint8_t x_86; -x_86 = lean_nat_dec_le(x_11, x_11); -if (x_86 == 0) +size_t x_86; size_t x_87; lean_object* x_88; lean_object* x_89; +x_86 = 0; +x_87 = lean_usize_of_nat(x_10); +x_88 = lean_box(0); +x_89 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__5(x_1, x_86, x_87, x_88, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_89) == 0) { -x_12 = x_9; -goto block_83; +lean_object* x_90; +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec(x_89); +x_11 = x_90; +goto block_82; } else { -size_t x_87; size_t x_88; lean_object* x_89; lean_object* x_90; -x_87 = 0; -x_88 = lean_usize_of_nat(x_11); -x_89 = lean_box(0); -x_90 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__5(x_1, x_87, x_88, x_89, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_12 = x_91; -goto block_83; -} -else -{ -uint8_t x_92; -lean_dec(x_11); +uint8_t x_91; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -693,36 +685,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_90); -if (x_92 == 0) +x_91 = !lean_is_exclusive(x_89); +if (x_91 == 0) { -return x_90; +return x_89; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_90, 0); -x_94 = lean_ctor_get(x_90, 1); -lean_inc(x_94); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_89, 0); +x_93 = lean_ctor_get(x_89, 1); lean_inc(x_93); -lean_dec(x_90); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; +lean_inc(x_92); +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_83: +block_82: { -lean_object* x_13; uint8_t x_14; -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_nat_dec_lt(x_13, x_11); -if (x_14 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_nat_dec_lt(x_12, x_10); +if (x_13 == 0) { -lean_object* x_15; lean_object* x_16; -lean_dec(x_11); +lean_object* x_14; lean_object* x_15; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -732,22 +723,21 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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); -return x_16; +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_11); +return x_15; } else { -size_t x_17; size_t x_18; uint8_t x_19; -x_17 = 0; -x_18 = lean_usize_of_nat(x_11); -x_19 = l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__1(x_1, x_17, x_18); -if (x_19 == 0) +size_t x_16; size_t x_17; uint8_t x_18; +x_16 = 0; +x_17 = lean_usize_of_nat(x_10); +x_18 = l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__1(x_1, x_16, x_17); +if (x_18 == 0) { -lean_object* x_20; lean_object* x_21; -lean_dec(x_11); +lean_object* x_19; lean_object* x_20; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -757,52 +747,51 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); 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_12); -return x_21; +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 { -uint8_t x_22; lean_object* x_23; lean_object* x_72; +uint8_t x_21; lean_object* x_22; lean_object* x_71; lean_inc(x_8); lean_inc(x_6); -x_72 = l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__4(x_1, x_17, x_18, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_72) == 0) +x_71 = l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___spec__4(x_1, x_16, x_17, x_5, x_6, x_7, x_8, x_11); +if (lean_obj_tag(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_75; uint8_t x_76; -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); lean_dec(x_72); -x_76 = 1; +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = 1; +x_21 = x_75; +x_22 = x_74; +goto block_70; +} +else +{ +lean_object* x_76; uint8_t x_77; +x_76 = lean_ctor_get(x_71, 1); +lean_inc(x_76); +lean_dec(x_71); +x_77 = 0; +x_21 = x_77; x_22 = x_76; -x_23 = x_75; -goto block_71; -} -else -{ -lean_object* x_77; uint8_t x_78; -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -lean_dec(x_72); -x_78 = 0; -x_22 = x_78; -x_23 = x_77; -goto block_71; +goto block_70; } } else { -uint8_t x_79; -lean_dec(x_11); +uint8_t x_78; lean_dec(x_10); lean_dec(x_8); lean_dec(x_6); @@ -810,196 +799,194 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_79 = !lean_is_exclusive(x_72); -if (x_79 == 0) +x_78 = !lean_is_exclusive(x_71); +if (x_78 == 0) { -return x_72; +return x_71; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_72, 0); -x_81 = lean_ctor_get(x_72, 1); -lean_inc(x_81); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_71, 0); +x_80 = lean_ctor_get(x_71, 1); lean_inc(x_80); -lean_dec(x_72); -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_inc(x_79); +lean_dec(x_71); +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; } } -block_71: +block_70: { -if (x_22 == 0) +if (x_21 == 0) { -size_t 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; uint8_t x_67; -x_24 = lean_array_size(x_1); +size_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; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_66; +x_23 = lean_array_size(x_1); lean_inc(x_1); -x_25 = l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__2(x_24, x_17, x_1); -x_26 = lean_st_ref_take(x_8, x_23); -x_27 = lean_ctor_get(x_26, 0); +x_24 = l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__2(x_23, x_16, x_1); +x_25 = lean_st_ref_take(x_8, x_22); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); 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); -x_31 = lean_ctor_get(x_27, 2); -lean_inc(x_31); -x_32 = lean_ctor_get(x_27, 3); -lean_inc(x_32); -x_33 = lean_ctor_get(x_27, 5); -lean_inc(x_33); -x_34 = lean_ctor_get(x_27, 6); -lean_inc(x_34); -x_35 = lean_ctor_get(x_27, 7); -lean_inc(x_35); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - lean_ctor_release(x_27, 2); - lean_ctor_release(x_27, 3); - lean_ctor_release(x_27, 4); - lean_ctor_release(x_27, 5); - lean_ctor_release(x_27, 6); - lean_ctor_release(x_27, 7); - x_36 = x_27; -} else { - lean_dec_ref(x_27); - x_36 = lean_box(0); -} -x_67 = lean_nat_dec_le(x_11, x_11); -lean_dec(x_11); -if (x_67 == 0) -{ lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +x_30 = lean_ctor_get(x_26, 2); +lean_inc(x_30); +x_31 = lean_ctor_get(x_26, 3); +lean_inc(x_31); +x_32 = lean_ctor_get(x_26, 5); +lean_inc(x_32); +x_33 = lean_ctor_get(x_26, 6); +lean_inc(x_33); +x_34 = lean_ctor_get(x_26, 7); +lean_inc(x_34); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + lean_ctor_release(x_26, 3); + lean_ctor_release(x_26, 4); + lean_ctor_release(x_26, 5); + lean_ctor_release(x_26, 6); + lean_ctor_release(x_26, 7); + x_35 = x_26; +} else { + lean_dec_ref(x_26); + x_35 = lean_box(0); +} +x_66 = lean_nat_dec_le(x_10, x_10); lean_dec(x_10); +if (x_66 == 0) +{ +lean_dec(x_24); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_37 = x_29; -goto block_66; +x_36 = x_28; +goto block_65; } else { -lean_object* x_68; -x_68 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(x_2, x_3, x_4, x_10, x_25, x_1, x_17, x_18, x_29); +lean_object* x_67; +x_67 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(x_2, x_3, x_4, x_24, x_1, x_16, x_17, x_28); lean_dec(x_1); -x_37 = x_68; -goto block_66; +x_36 = x_67; +goto block_65; } -block_66: +block_65: { -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_38 = l_Lean_Elab_WF_registerEqnsInfo___closed__3; -if (lean_is_scalar(x_36)) { - x_39 = lean_alloc_ctor(0, 8, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_37 = l_Lean_Elab_WF_registerEqnsInfo___closed__3; +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 8, 0); } else { - x_39 = x_36; + x_38 = x_35; } -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_30); -lean_ctor_set(x_39, 2, x_31); -lean_ctor_set(x_39, 3, x_32); -lean_ctor_set(x_39, 4, x_38); -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_st_ref_set(x_8, x_39, x_28); +lean_ctor_set(x_38, 0, x_36); +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_37); +lean_ctor_set(x_38, 5, x_32); +lean_ctor_set(x_38, 6, x_33); +lean_ctor_set(x_38, 7, x_34); +x_39 = lean_st_ref_set(x_8, x_38, x_27); lean_dec(x_8); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_st_ref_take(x_6, x_41); -x_43 = lean_ctor_get(x_42, 0); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_st_ref_take(x_6, 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); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = !lean_is_exclusive(x_43); -if (x_45 == 0) +lean_dec(x_41); +x_44 = !lean_is_exclusive(x_42); +if (x_44 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_43, 1); -lean_dec(x_46); -x_47 = l_Lean_Elab_WF_registerEqnsInfo___closed__4; -lean_ctor_set(x_43, 1, x_47); -x_48 = lean_st_ref_set(x_6, x_43, x_44); +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_42, 1); +lean_dec(x_45); +x_46 = l_Lean_Elab_WF_registerEqnsInfo___closed__4; +lean_ctor_set(x_42, 1, x_46); +x_47 = lean_st_ref_set(x_6, x_42, x_43); lean_dec(x_6); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_48, 0); -lean_dec(x_50); -x_51 = lean_box(0); -lean_ctor_set(x_48, 0, x_51); -return x_48; +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +x_50 = lean_box(0); +lean_ctor_set(x_47, 0, x_50); +return x_47; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_48, 1); -lean_inc(x_52); -lean_dec(x_48); -x_53 = lean_box(0); -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_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_47, 1); +lean_inc(x_51); +lean_dec(x_47); +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_51); +return x_53; } } 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_43, 0); -x_56 = lean_ctor_get(x_43, 2); -x_57 = lean_ctor_get(x_43, 3); -x_58 = lean_ctor_get(x_43, 4); -lean_inc(x_58); +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_42, 0); +x_55 = lean_ctor_get(x_42, 2); +x_56 = lean_ctor_get(x_42, 3); +x_57 = lean_ctor_get(x_42, 4); lean_inc(x_57); lean_inc(x_56); lean_inc(x_55); -lean_dec(x_43); -x_59 = l_Lean_Elab_WF_registerEqnsInfo___closed__4; -x_60 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_60, 0, x_55); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_60, 2, x_56); -lean_ctor_set(x_60, 3, x_57); -lean_ctor_set(x_60, 4, x_58); -x_61 = lean_st_ref_set(x_6, x_60, x_44); +lean_inc(x_54); +lean_dec(x_42); +x_58 = l_Lean_Elab_WF_registerEqnsInfo___closed__4; +x_59 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_58); +lean_ctor_set(x_59, 2, x_55); +lean_ctor_set(x_59, 3, x_56); +lean_ctor_set(x_59, 4, x_57); +x_60 = lean_st_ref_set(x_6, x_59, x_43); lean_dec(x_6); -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; +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_61); - x_63 = lean_box(0); + lean_dec_ref(x_60); + x_62 = lean_box(0); } -x_64 = lean_box(0); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 2, 0); +x_63 = lean_box(0); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 2, 0); } else { - x_65 = x_63; + x_64 = x_62; } -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_62); -return x_65; +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_61); +return x_64; } } } else { -lean_object* x_69; lean_object* x_70; -lean_dec(x_11); +lean_object* x_68; lean_object* x_69; lean_dec(x_10); lean_dec(x_8); lean_dec(x_6); @@ -1007,11 +994,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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_23); -return x_70; +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_22); +return x_69; } } } @@ -1045,17 +1032,17 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__2(x_4, x return x_6; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___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) { _start: { -size_t x_10; size_t x_11; lean_object* x_12; +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); 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_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9); -lean_dec(x_6); -return x_12; +x_11 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__3(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_8); +lean_dec(x_5); +return x_11; } } LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_WF_registerEqnsInfo___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) { @@ -1351,7 +1338,7 @@ return x_63; } } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300____closed__1() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285____closed__1() { _start: { lean_object* x_1; @@ -1359,11 +1346,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_WF_getEqnsFor_x3f), 6, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300____closed__1; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285____closed__1; x_3 = l_Lean_Meta_registerGetEqnsFn(x_2, x_1); return x_3; } @@ -1421,21 +1408,21 @@ l_Lean_Elab_WF_instInhabitedEqnInfo___closed__7 = _init_l_Lean_Elab_WF_instInhab lean_mark_persistent(l_Lean_Elab_WF_instInhabitedEqnInfo___closed__7); l_Lean_Elab_WF_instInhabitedEqnInfo = _init_l_Lean_Elab_WF_instInhabitedEqnInfo(); lean_mark_persistent(l_Lean_Elab_WF_instInhabitedEqnInfo); -l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___closed__1 = _init_l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___closed__1(); -lean_mark_persistent(l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____spec__1___closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__1(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__2(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__2); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__3 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__3(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__3); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__4 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__4(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__4); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__5 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__5(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__5); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__6 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__6(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73____closed__6); -if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_73_(lean_io_mk_world()); +l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___closed__1 = _init_l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___closed__1(); +lean_mark_persistent(l_Lean_RBMap_toArray___at_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____spec__1___closed__1); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__1); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__2(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__2); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__3 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__3(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__3); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__4 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__4(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__4); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__5 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__5(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__5); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__6 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__6(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64____closed__6); +if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_64_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_WF_eqnInfoExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_WF_eqnInfoExt); @@ -1450,9 +1437,9 @@ l_Lean_Elab_WF_registerEqnsInfo___closed__3 = _init_l_Lean_Elab_WF_registerEqnsI lean_mark_persistent(l_Lean_Elab_WF_registerEqnsInfo___closed__3); l_Lean_Elab_WF_registerEqnsInfo___closed__4 = _init_l_Lean_Elab_WF_registerEqnsInfo___closed__4(); lean_mark_persistent(l_Lean_Elab_WF_registerEqnsInfo___closed__4); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300____closed__1(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300____closed__1); -if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_300_(lean_io_mk_world()); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285____closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285____closed__1); +if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_285_(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/Print.c b/stage0/stdlib/Lean/Elab/Print.c index 4f79a5781d..8ff98acc8c 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -55,7 +55,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint_declRange__1___cl lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TSyntax_getString(lean_object*); lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instantiateStructDefaultValueFn_x3f___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -257,10 +256,13 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Pri lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__32___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__3; lean_object* l_panic___at_Lean_Expr_appFn_x21___spec__1(lean_object*); +static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__2; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__42___boxed(lean_object**); +lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); @@ -336,6 +338,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintEqns_declRange__1_ static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintEqns_declRange__1___closed__5; static lean_object* l_Lean_Elab_Command_elabPrint___closed__11; lean_object* l_Lean_getFieldInfo_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getOriginalConstKind_x3f(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__17; static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms_declRange__1___closed__5; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1; @@ -365,6 +368,7 @@ extern lean_object* l_Lean_pp_proofs; static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms_declRange__1___closed__2; lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__7; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printEqnsOf___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___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__19(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_getStructureResolutionOrder___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -435,6 +439,7 @@ lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); lean_object* l_Lean_Level_param___override(lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintEqns__1(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___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*); static lean_object* l_List_forIn_x27_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__3___closed__1; @@ -1372,6 +1377,53 @@ lean_dec(x_1); return x_12; } } +static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 14, 14); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___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_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__2; +x_2 = l_Lean_MessageData_ofFormat(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__3; +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_MessageData_ofExpr(x_3); +return x_4; +} +} +} static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1() { _start: { @@ -1426,7 +1478,7 @@ x_15 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__4 x_16 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_16, 0, x_11); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_MessageData_ofExpr(x_5); +x_17 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg(x_5); x_18 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -1450,7 +1502,7 @@ x_25 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__4 x_26 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_MessageData_ofExpr(x_5); +x_27 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg(x_5); x_28 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -8942,7 +8994,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_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__40___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__40___closed__2; -x_3 = lean_unsigned_to_nat(127u); +x_3 = lean_unsigned_to_nat(131u); x_4 = lean_unsigned_to_nat(55u); x_5 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure___spec__40___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12248,191 +12300,524 @@ return x_11; } else { -lean_object* x_12; -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -switch (lean_obj_tag(x_12)) { +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); +switch (lean_obj_tag(x_13)) { case 0: { -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); +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_free_object(x_10); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); lean_dec(x_13); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 2); -lean_inc(x_17); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); lean_dec(x_14); -x_18 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; -x_19 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_18, x_1, x_16, x_17, x_15, x_2, x_3, x_7); -return x_19; -} -case 1: -{ -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_dec(x_8); -x_20 = lean_ctor_get(x_12, 0); -lean_inc(x_20); -lean_dec(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); -x_23 = lean_ctor_get_uint8(x_20, sizeof(void*)*4); -lean_dec(x_20); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -x_25 = lean_ctor_get(x_21, 2); -lean_inc(x_25); -lean_dec(x_21); -x_26 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; -x_27 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_26, x_1, x_24, x_25, x_22, x_23, x_2, x_3, x_7); -return x_27; -} -case 2: -{ -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_dec(x_8); -x_28 = lean_ctor_get(x_12, 0); -lean_inc(x_28); -lean_dec(x_12); -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, 1); -lean_inc(x_31); -x_32 = lean_ctor_get(x_29, 2); -lean_inc(x_32); -lean_dec(x_29); -x_33 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; -x_34 = 1; -x_35 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_33, x_1, x_31, x_32, x_30, x_34, x_2, x_3, x_7); -return x_35; -} -case 3: -{ -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_dec(x_8); -x_36 = lean_ctor_get(x_12, 0); -lean_inc(x_36); -lean_dec(x_12); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get_uint8(x_36, sizeof(void*)*3); -lean_dec(x_36); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 2); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4; -x_42 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_41, x_1, x_39, x_40, x_38, x_2, x_3, x_7); -return x_42; -} -case 4: -{ -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_8); -x_43 = lean_ctor_get(x_12, 0); -lean_inc(x_43); -lean_dec(x_12); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 2); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___closed__1; -x_48 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_47, x_1, x_45, x_46, x_9, x_2, x_3, x_7); -return x_48; -} -case 5: -{ -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; uint8_t x_56; -x_49 = lean_ctor_get(x_12, 0); -lean_inc(x_49); -lean_dec(x_12); -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_49, 4); -lean_inc(x_52); -x_53 = lean_ctor_get_uint8(x_49, sizeof(void*)*6 + 1); -lean_dec(x_49); -x_54 = lean_ctor_get(x_50, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_50, 2); -lean_inc(x_55); -lean_dec(x_50); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 2); +lean_inc(x_18); +lean_dec(x_15); lean_inc(x_1); -x_56 = l_Lean_isStructure(x_8, x_1); -if (x_56 == 0) +x_19 = l_Lean_getOriginalConstKind_x3f(x_8, x_1); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_57; -x_57 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct(x_1, x_54, x_51, x_55, x_52, x_53, x_2, x_3, x_7); -return x_57; +lean_object* x_20; lean_object* x_21; +x_20 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; +x_21 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_20, x_1, x_17, x_18, x_16, x_2, x_3, x_7); +return x_21; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_58 = l_Lean_instInhabitedName; -x_59 = lean_unsigned_to_nat(0u); -x_60 = l___private_Init_GetElem_0__List_get_x21Internal___rarg(x_58, x_52, x_59); -lean_dec(x_52); -x_61 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure(x_1, x_54, x_51, x_55, x_60, x_53, x_2, x_3, x_7); +lean_object* x_22; +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +switch (lean_obj_tag(x_22)) { +case 0: +{ +lean_object* x_23; +x_23 = lean_box(0); +if (x_16 == 0) +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_25 = 1; +x_26 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_24, x_1, x_17, x_18, x_23, x_25, x_2, x_3, x_7); +return x_26; +} +else +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_27 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_28 = 0; +x_29 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_27, x_1, x_17, x_18, x_23, x_28, x_2, x_3, x_7); +return x_29; +} +} +case 1: +{ +lean_object* x_30; +x_30 = lean_box(0); +if (x_16 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_object* x_33; +x_31 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_32 = 1; +x_33 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_31, x_1, x_17, x_18, x_30, x_32, x_2, x_3, x_7); +return x_33; +} +else +{ +lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_34 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_35 = 0; +x_36 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_34, x_1, x_17, x_18, x_30, x_35, x_2, x_3, x_7); +return x_36; +} +} +default: +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_22); +x_37 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; +x_38 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_37, x_1, x_17, x_18, x_16, x_2, x_3, x_7); +return x_38; +} +} +} +} +case 1: +{ +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_dec(x_8); +x_39 = lean_ctor_get(x_13, 0); +lean_inc(x_39); +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); +x_42 = lean_ctor_get_uint8(x_39, sizeof(void*)*4); +lean_dec(x_39); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_40, 2); +lean_inc(x_44); +lean_dec(x_40); +lean_ctor_set(x_10, 0, x_41); +x_45 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_46 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_45, x_1, x_43, x_44, x_10, x_42, x_2, x_3, x_7); +return x_46; +} +case 2: +{ +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_dec(x_8); +x_47 = lean_ctor_get(x_13, 0); +lean_inc(x_47); +lean_dec(x_13); +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_ctor_get(x_48, 1); +lean_inc(x_50); +x_51 = lean_ctor_get(x_48, 2); +lean_inc(x_51); +lean_dec(x_48); +lean_ctor_set(x_10, 0, x_49); +x_52 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_53 = 1; +x_54 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_52, x_1, x_50, x_51, x_10, x_53, x_2, x_3, x_7); +return x_54; +} +case 3: +{ +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_free_object(x_10); +lean_dec(x_8); +x_55 = lean_ctor_get(x_13, 0); +lean_inc(x_55); +lean_dec(x_13); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get_uint8(x_55, sizeof(void*)*3); +lean_dec(x_55); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +x_59 = lean_ctor_get(x_56, 2); +lean_inc(x_59); +lean_dec(x_56); +x_60 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4; +x_61 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_60, x_1, x_58, x_59, x_57, x_2, x_3, x_7); return x_61; } +case 4: +{ +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_free_object(x_10); +lean_dec(x_8); +x_62 = lean_ctor_get(x_13, 0); +lean_inc(x_62); +lean_dec(x_13); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +lean_dec(x_62); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 2); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___closed__1; +x_67 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_66, x_1, x_64, x_65, x_9, x_2, x_3, x_7); +return x_67; +} +case 5: +{ +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; uint8_t x_75; +lean_free_object(x_10); +x_68 = lean_ctor_get(x_13, 0); +lean_inc(x_68); +lean_dec(x_13); +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_68, 4); +lean_inc(x_71); +x_72 = lean_ctor_get_uint8(x_68, sizeof(void*)*6 + 1); +lean_dec(x_68); +x_73 = lean_ctor_get(x_69, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_69, 2); +lean_inc(x_74); +lean_dec(x_69); +lean_inc(x_1); +x_75 = l_Lean_isStructure(x_8, x_1); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct(x_1, x_73, x_70, x_74, x_71, x_72, x_2, x_3, x_7); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_77 = l_Lean_instInhabitedName; +x_78 = lean_unsigned_to_nat(0u); +x_79 = l___private_Init_GetElem_0__List_get_x21Internal___rarg(x_77, x_71, x_78); +lean_dec(x_71); +x_80 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure(x_1, x_73, x_70, x_74, x_79, x_72, x_2, x_3, x_7); +return x_80; +} } case 6: { -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_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_free_object(x_10); lean_dec(x_8); -x_62 = lean_ctor_get(x_12, 0); -lean_inc(x_62); -lean_dec(x_12); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get_uint8(x_62, sizeof(void*)*5); -lean_dec(x_62); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -x_66 = lean_ctor_get(x_63, 2); -lean_inc(x_66); -lean_dec(x_63); -x_67 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5; -x_68 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_67, x_1, x_65, x_66, x_64, x_2, x_3, x_7); -return x_68; +x_81 = lean_ctor_get(x_13, 0); +lean_inc(x_81); +lean_dec(x_13); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get_uint8(x_81, sizeof(void*)*5); +lean_dec(x_81); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 2); +lean_inc(x_85); +lean_dec(x_82); +x_86 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5; +x_87 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_86, x_1, x_84, x_85, x_83, x_2, x_3, x_7); +return x_87; } default: { -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_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; +lean_free_object(x_10); lean_dec(x_8); -x_69 = lean_ctor_get(x_12, 0); -lean_inc(x_69); -lean_dec(x_12); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get_uint8(x_69, sizeof(void*)*7 + 1); -lean_dec(x_69); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_70, 2); -lean_inc(x_73); -lean_dec(x_70); -x_74 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6; -x_75 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_74, x_1, x_72, x_73, x_71, x_2, x_3, x_7); -return x_75; +x_88 = lean_ctor_get(x_13, 0); +lean_inc(x_88); +lean_dec(x_13); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get_uint8(x_88, sizeof(void*)*7 + 1); +lean_dec(x_88); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +x_92 = lean_ctor_get(x_89, 2); +lean_inc(x_92); +lean_dec(x_89); +x_93 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6; +x_94 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_93, x_1, x_91, x_92, x_90, x_2, x_3, x_7); +return x_94; +} +} +} +else +{ +lean_object* x_95; +x_95 = lean_ctor_get(x_10, 0); +lean_inc(x_95); +lean_dec(x_10); +switch (lean_obj_tag(x_95)) { +case 0: +{ +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_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +lean_dec(x_95); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get_uint8(x_96, sizeof(void*)*1); +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); +lean_dec(x_97); +lean_inc(x_1); +x_101 = l_Lean_getOriginalConstKind_x3f(x_8, x_1); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; +x_102 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; +x_103 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_102, x_1, x_99, x_100, x_98, x_2, x_3, x_7); +return x_103; +} +else +{ +lean_object* x_104; +x_104 = lean_ctor_get(x_101, 0); +lean_inc(x_104); +lean_dec(x_101); +switch (lean_obj_tag(x_104)) { +case 0: +{ +lean_object* x_105; +x_105 = lean_box(0); +if (x_98 == 0) +{ +lean_object* x_106; uint8_t x_107; lean_object* x_108; +x_106 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_107 = 1; +x_108 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_106, x_1, x_99, x_100, x_105, x_107, x_2, x_3, x_7); +return x_108; +} +else +{ +lean_object* x_109; uint8_t x_110; lean_object* x_111; +x_109 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_110 = 0; +x_111 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_109, x_1, x_99, x_100, x_105, x_110, x_2, x_3, x_7); +return x_111; +} +} +case 1: +{ +lean_object* x_112; +x_112 = lean_box(0); +if (x_98 == 0) +{ +lean_object* x_113; uint8_t x_114; lean_object* x_115; +x_113 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_114 = 1; +x_115 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_113, x_1, x_99, x_100, x_112, x_114, x_2, x_3, x_7); +return x_115; +} +else +{ +lean_object* x_116; uint8_t x_117; lean_object* x_118; +x_116 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_117 = 0; +x_118 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_116, x_1, x_99, x_100, x_112, x_117, x_2, x_3, x_7); +return x_118; +} +} +default: +{ +lean_object* x_119; lean_object* x_120; +lean_dec(x_104); +x_119 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; +x_120 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_119, x_1, x_99, x_100, x_98, x_2, x_3, x_7); +return x_120; +} +} +} +} +case 1: +{ +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; lean_object* x_128; lean_object* x_129; +lean_dec(x_8); +x_121 = lean_ctor_get(x_95, 0); +lean_inc(x_121); +lean_dec(x_95); +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_uint8(x_121, sizeof(void*)*4); +lean_dec(x_121); +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); +x_126 = lean_ctor_get(x_122, 2); +lean_inc(x_126); +lean_dec(x_122); +x_127 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_127, 0, x_123); +x_128 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_129 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_128, x_1, x_125, x_126, x_127, x_124, x_2, x_3, x_7); +return x_129; +} +case 2: +{ +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_dec(x_8); +x_130 = lean_ctor_get(x_95, 0); +lean_inc(x_130); +lean_dec(x_95); +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_ctor_get(x_131, 1); +lean_inc(x_133); +x_134 = lean_ctor_get(x_131, 2); +lean_inc(x_134); +lean_dec(x_131); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_132); +x_136 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_137 = 1; +x_138 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_136, x_1, x_133, x_134, x_135, x_137, x_2, x_3, x_7); +return x_138; +} +case 3: +{ +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_dec(x_8); +x_139 = lean_ctor_get(x_95, 0); +lean_inc(x_139); +lean_dec(x_95); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_139, sizeof(void*)*3); +lean_dec(x_139); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_140, 2); +lean_inc(x_143); +lean_dec(x_140); +x_144 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4; +x_145 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_144, x_1, x_142, x_143, x_141, x_2, x_3, x_7); +return x_145; +} +case 4: +{ +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_dec(x_8); +x_146 = lean_ctor_get(x_95, 0); +lean_inc(x_146); +lean_dec(x_95); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +lean_dec(x_146); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 2); +lean_inc(x_149); +lean_dec(x_147); +x_150 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___closed__1; +x_151 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_150, x_1, x_148, x_149, x_9, x_2, x_3, x_7); +return x_151; +} +case 5: +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_152 = lean_ctor_get(x_95, 0); +lean_inc(x_152); +lean_dec(x_95); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_152, 4); +lean_inc(x_155); +x_156 = lean_ctor_get_uint8(x_152, sizeof(void*)*6 + 1); +lean_dec(x_152); +x_157 = lean_ctor_get(x_153, 1); +lean_inc(x_157); +x_158 = lean_ctor_get(x_153, 2); +lean_inc(x_158); +lean_dec(x_153); +lean_inc(x_1); +x_159 = l_Lean_isStructure(x_8, x_1); +if (x_159 == 0) +{ +lean_object* x_160; +x_160 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct(x_1, x_157, x_154, x_158, x_155, x_156, x_2, x_3, x_7); +return x_160; +} +else +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_161 = l_Lean_instInhabitedName; +x_162 = lean_unsigned_to_nat(0u); +x_163 = l___private_Init_GetElem_0__List_get_x21Internal___rarg(x_161, x_155, x_162); +lean_dec(x_155); +x_164 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printStructure(x_1, x_157, x_154, x_158, x_163, x_156, x_2, x_3, x_7); +return x_164; +} +} +case 6: +{ +lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_8); +x_165 = lean_ctor_get(x_95, 0); +lean_inc(x_165); +lean_dec(x_95); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get_uint8(x_165, sizeof(void*)*5); +lean_dec(x_165); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_166, 2); +lean_inc(x_169); +lean_dec(x_166); +x_170 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5; +x_171 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_170, x_1, x_168, x_169, x_167, x_2, x_3, x_7); +return x_171; +} +default: +{ +lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_dec(x_8); +x_172 = lean_ctor_get(x_95, 0); +lean_inc(x_172); +lean_dec(x_95); +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get_uint8(x_172, sizeof(void*)*7 + 1); +lean_dec(x_172); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +x_176 = lean_ctor_get(x_173, 2); +lean_inc(x_176); +lean_dec(x_173); +x_177 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6; +x_178 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_177, x_1, x_175, x_176, x_174, x_2, x_3, x_7); +return x_178; +} } } } @@ -13041,7 +13426,7 @@ x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); lean_dec(x_7); x_9 = l_Lean_collectAxioms___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1___closed__1; -x_10 = l_Lean_CollectAxioms_collect(x_1, x_8, x_9); +x_10 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_8, x_9); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); @@ -13063,7 +13448,7 @@ x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); lean_dec(x_13); x_16 = l_Lean_collectAxioms___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1___closed__1; -x_17 = l_Lean_CollectAxioms_collect(x_1, x_15, x_16); +x_17 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_15, x_16); x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); @@ -14416,6 +14801,12 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__22 = _init_l lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__22); l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__23 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__23(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__23); +l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__1 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__1); +l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__2 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__2); +l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__3 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkOmittedMsg___closed__3); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__2 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Omega/Frontend.c b/stage0/stdlib/Lean/Elab/Tactic/Omega/Frontend.c index ccd88adad9..cf2eeac2ee 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Omega/Frontend.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Omega/Frontend.c @@ -15342,7 +15342,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_Omega_asLinearComboImpl_handleNatCa _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("ofNat_emod", 10, 10); +x_1 = lean_mk_string_unchecked("natCast_emod", 12, 12); return x_1; } } @@ -15408,7 +15408,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_Omega_asLinearComboImpl_handleNatCa _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("ofNat_ediv", 10, 10); +x_1 = lean_mk_string_unchecked("natCast_ediv", 12, 12); return x_1; } } @@ -15494,7 +15494,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_Omega_asLinearComboImpl_handleNatCa _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("ofNat_add", 9, 9); +x_1 = lean_mk_string_unchecked("natCast_add", 11, 11); return x_1; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c b/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c index c0e8ab5c57..c187eb0951 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c +++ b/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c @@ -52,7 +52,7 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___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_evalSimpTrace___lambda__4___closed__1; 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_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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_evalSimpAllTrace___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_evalSimpAllTrace___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*); static lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace__1___closed__2; @@ -69,12 +69,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__5___boxed LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalSimpTrace___spec__1___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go(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*); static lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__4; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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_evalSimpAllTrace___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_SourceInfo_fromRef(lean_object*, uint8_t); lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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_evalDSimpTrace___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_evalSimpTrace___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_Lean_Elab_Tactic_evalSimpTrace___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace_declRange__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAllTrace_declRange__1___closed__6; @@ -133,13 +133,14 @@ static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___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_Array_mkArray3___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__8; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___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_evalSimpTrace___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_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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*); static lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; static lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpCallStx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_Context_setAutoUnfold(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace_declRange__1___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpTrace__1___closed__5; static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__10; @@ -172,7 +173,7 @@ lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace(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_evalSimpAllTrace___lambda__3___closed__3; static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__5___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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_evalDSimpTrace___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_evalSimpAllTrace___lambda__3___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace__1(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__3; @@ -185,7 +186,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___lambda__4(lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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_Elab_Tactic_evalDSimpTrace___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_evalDSimpTrace___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_mkSimpCallStx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___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*); @@ -374,13 +375,14 @@ x_1 = lean_mk_string_unchecked("Try this: ", 10, 10); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___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: { -uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_13 = 0; +uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; x_14 = 0; -x_15 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__1; +x_15 = 0; +x_16 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__1; +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -389,191 +391,207 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_16 = l_Lean_Elab_Tactic_mkSimpContext(x_3, x_13, x_14, x_13, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_16) == 0) +x_17 = l_Lean_Elab_Tactic_mkSimpContext(x_4, x_14, x_15, x_14, 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_17) == 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; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +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); -lean_dec(x_16); -x_19 = lean_ctor_get(x_17, 0); +x_19 = lean_ctor_get(x_17, 1); 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); lean_dec(x_17); -x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___boxed), 13, 3); -lean_closure_set(x_22, 0, x_1); -lean_closure_set(x_22, 1, x_19); -lean_closure_set(x_22, 2, x_20); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 2); +lean_inc(x_22); +lean_dec(x_18); +if (lean_obj_tag(x_3) == 0) +{ +x_23 = x_20; +goto block_58; +} +else +{ +lean_object* x_59; +x_59 = l_Lean_Meta_Simp_Context_setAutoUnfold(x_20); +x_23 = x_59; +goto block_58; +} +block_58: +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___boxed), 13, 3); +lean_closure_set(x_24, 0, x_1); +lean_closure_set(x_24, 1, x_23); +lean_closure_set(x_24, 2, x_21); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_23 = l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(x_21, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -lean_dec(x_21); -if (lean_obj_tag(x_23) == 0) +x_25 = l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(x_22, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +lean_dec(x_22); +if (lean_obj_tag(x_25) == 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_ctor_get(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_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_27 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_26, x_8, x_9, x_10, x_11, x_25); -lean_dec(x_26); -if (lean_obj_tag(x_27) == 0) +x_29 = l_Lean_Elab_Tactic_mkSimpCallStx(x_4, x_28, x_9, x_10, x_11, x_12, x_27); +lean_dec(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; lean_object* 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_ctor_get(x_10, 5); +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_29, 0); lean_inc(x_30); -x_31 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_28); -x_33 = lean_box(0); -x_34 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -lean_ctor_set(x_34, 2, x_33); -lean_ctor_set(x_34, 3, x_33); -lean_ctor_set(x_34, 4, x_33); -lean_ctor_set(x_34, 5, x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_30); -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_29); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_ctor_get(x_11, 5); +lean_inc(x_32); +x_33 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_35); +lean_ctor_set(x_36, 3, x_35); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_35); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_32); +x_38 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; +x_39 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_36, x_37, x_38, x_35, x_9, x_10, x_11, x_12, x_31); +lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_35); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -x_40 = lean_ctor_get(x_24, 1); -lean_inc(x_40); -lean_dec(x_24); -lean_ctor_set(x_37, 0, x_40); -return x_37; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); lean_dec(x_37); -x_42 = lean_ctor_get(x_24, 1); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_26, 1); lean_inc(x_42); -lean_dec(x_24); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -return x_43; +lean_dec(x_26); +lean_ctor_set(x_39, 0, x_42); +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_dec(x_39); +x_44 = lean_ctor_get(x_26, 1); +lean_inc(x_44); +lean_dec(x_26); +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; } } else { -uint8_t x_44; -lean_dec(x_24); -x_44 = !lean_is_exclusive(x_37); -if (x_44 == 0) +uint8_t x_46; +lean_dec(x_26); +x_46 = !lean_is_exclusive(x_39); +if (x_46 == 0) { -return x_37; +return x_39; } 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_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_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_39, 0); +x_48 = lean_ctor_get(x_39, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_39); +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; -lean_dec(x_24); +uint8_t x_50; +lean_dec(x_26); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -x_48 = !lean_is_exclusive(x_27); -if (x_48 == 0) +x_50 = !lean_is_exclusive(x_29); +if (x_50 == 0) { -return x_27; +return x_29; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_27, 0); -x_50 = lean_ctor_get(x_27, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_27); -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_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_29, 0); +x_52 = lean_ctor_get(x_29, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_29); +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_52; +uint8_t 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_3); -x_52 = !lean_is_exclusive(x_23); -if (x_52 == 0) +lean_dec(x_4); +x_54 = !lean_is_exclusive(x_25); +if (x_54 == 0) { -return x_23; +return x_25; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_23, 0); -x_54 = lean_ctor_get(x_23, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_23); -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; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_25, 0); +x_56 = lean_ctor_get(x_25, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_25); +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_56; +uint8_t x_60; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -582,25 +600,24 @@ 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_56 = !lean_is_exclusive(x_16); -if (x_56 == 0) +x_60 = !lean_is_exclusive(x_17); +if (x_60 == 0) { -return x_16; +return x_17; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_16, 0); -x_58 = lean_ctor_get(x_16, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_16); -x_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_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); +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; } } } @@ -901,7 +918,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; x_44 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; lean_inc(x_43); x_45 = l_Lean_Syntax_node6(x_26, x_44, x_27, x_5, x_38, x_41, x_43, x_43); -x_46 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_45, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); +x_46 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_45, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); return x_46; } else @@ -919,7 +936,7 @@ lean_ctor_set(x_50, 1, x_37); lean_ctor_set(x_50, 2, x_49); x_51 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; x_52 = l_Lean_Syntax_node6(x_26, x_51, x_27, x_5, x_38, x_41, x_43, x_50); -x_53 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_52, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); +x_53 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_52, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); return x_53; } } @@ -962,7 +979,7 @@ lean_ctor_set(x_65, 1, x_37); lean_ctor_set(x_65, 2, x_64); x_66 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; x_67 = l_Lean_Syntax_node6(x_26, x_66, x_27, x_5, x_38, x_41, x_63, x_65); -x_68 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_67, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); +x_68 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_67, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); return x_68; } else @@ -980,7 +997,7 @@ lean_ctor_set(x_72, 1, x_37); lean_ctor_set(x_72, 2, x_71); x_73 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; x_74 = l_Lean_Syntax_node6(x_26, x_73, x_27, x_5, x_38, x_41, x_63, x_72); -x_75 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_74, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); +x_75 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_74, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_29); return x_75; } } @@ -1071,7 +1088,7 @@ lean_object* x_101; lean_object* x_102; lean_object* x_103; x_101 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; lean_inc(x_100); x_102 = l_Lean_Syntax_node6(x_26, x_101, x_90, x_5, x_95, x_98, x_100, x_100); -x_103 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_102, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); +x_103 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_102, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); return x_103; } else @@ -1089,7 +1106,7 @@ lean_ctor_set(x_107, 1, x_94); lean_ctor_set(x_107, 2, x_106); x_108 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; x_109 = l_Lean_Syntax_node6(x_26, x_108, x_90, x_5, x_95, x_98, x_100, x_107); -x_110 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_109, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); +x_110 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_109, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); return x_110; } } @@ -1132,7 +1149,7 @@ lean_ctor_set(x_122, 1, x_94); lean_ctor_set(x_122, 2, x_121); x_123 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; x_124 = l_Lean_Syntax_node6(x_26, x_123, x_90, x_5, x_95, x_98, x_120, x_122); -x_125 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_124, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); +x_125 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_124, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); return x_125; } else @@ -1150,7 +1167,7 @@ lean_ctor_set(x_129, 1, x_94); lean_ctor_set(x_129, 2, x_128); x_130 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__5; x_131 = l_Lean_Syntax_node6(x_26, x_130, x_90, x_5, x_95, x_98, x_120, x_129); -x_132 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_131, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); +x_132 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_131, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_86); return x_132; } } @@ -1253,7 +1270,7 @@ lean_object* x_163; lean_object* x_164; lean_object* x_165; x_163 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; lean_inc(x_162); x_164 = l_Lean_Syntax_node6(x_145, x_163, x_146, x_5, x_157, x_160, x_162, x_162); -x_165 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_164, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); +x_165 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_164, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); return x_165; } else @@ -1271,7 +1288,7 @@ lean_ctor_set(x_169, 1, x_156); lean_ctor_set(x_169, 2, x_168); x_170 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; x_171 = l_Lean_Syntax_node6(x_145, x_170, x_146, x_5, x_157, x_160, x_162, x_169); -x_172 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_171, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); +x_172 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_171, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); return x_172; } } @@ -1314,7 +1331,7 @@ lean_ctor_set(x_184, 1, x_156); lean_ctor_set(x_184, 2, x_183); x_185 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; x_186 = l_Lean_Syntax_node6(x_145, x_185, x_146, x_5, x_157, x_160, x_182, x_184); -x_187 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_186, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); +x_187 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_186, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); return x_187; } else @@ -1332,7 +1349,7 @@ lean_ctor_set(x_191, 1, x_156); lean_ctor_set(x_191, 2, x_190); x_192 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; x_193 = l_Lean_Syntax_node6(x_145, x_192, x_146, x_5, x_157, x_160, x_182, x_191); -x_194 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_193, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); +x_194 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_193, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_148); return x_194; } } @@ -1424,7 +1441,7 @@ lean_object* x_221; lean_object* x_222; lean_object* x_223; x_221 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; lean_inc(x_220); x_222 = l_Lean_Syntax_node6(x_145, x_221, x_210, x_5, x_215, x_218, x_220, x_220); -x_223 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_222, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); +x_223 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_222, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); return x_223; } else @@ -1442,7 +1459,7 @@ lean_ctor_set(x_227, 1, x_214); lean_ctor_set(x_227, 2, x_226); x_228 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; x_229 = l_Lean_Syntax_node6(x_145, x_228, x_210, x_5, x_215, x_218, x_220, x_227); -x_230 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_229, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); +x_230 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_229, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); return x_230; } } @@ -1485,7 +1502,7 @@ lean_ctor_set(x_242, 1, x_214); lean_ctor_set(x_242, 2, x_241); x_243 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; x_244 = l_Lean_Syntax_node6(x_145, x_243, x_210, x_5, x_215, x_218, x_240, x_242); -x_245 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_244, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); +x_245 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_244, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); return x_245; } else @@ -1503,7 +1520,7 @@ lean_ctor_set(x_249, 1, x_214); lean_ctor_set(x_249, 2, x_248); x_250 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___closed__14; x_251 = l_Lean_Syntax_node6(x_145, x_250, x_210, x_5, x_215, x_218, x_240, x_249); -x_252 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_251, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); +x_252 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2(x_22, x_3, x_4, x_251, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_206); return x_252; } } @@ -1903,13 +1920,14 @@ lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___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_13; -x_13 = l_Lean_Elab_Tactic_evalSimpTrace___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); +lean_object* x_14; +x_14 = l_Lean_Elab_Tactic_evalSimpTrace___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_3); lean_dec(x_2); -return x_13; +return x_14; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__3___boxed(lean_object** _args) { @@ -2338,13 +2356,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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_Lean_Elab_Tactic_evalSimpAllTrace___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_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = 1; +uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_13 = 1; -x_14 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__1; +x_14 = 1; +x_15 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__1; +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -2353,144 +2372,93 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_15 = l_Lean_Elab_Tactic_mkSimpContext(x_2, x_12, x_13, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_Elab_Tactic_mkSimpContext(x_3, x_13, x_14, x_13, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); -if (lean_obj_tag(x_19) == 0) +if (lean_obj_tag(x_2) == 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; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_72; +x_72 = lean_ctor_get(x_17, 0); +lean_inc(x_72); +lean_dec(x_17); +x_19 = x_72; +goto block_71; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_17, 0); +lean_inc(x_73); +lean_dec(x_17); +x_74 = l_Lean_Meta_Simp_Context_setAutoUnfold(x_73); +x_19 = x_74; +goto block_71; +} +block_71: +{ +lean_object* x_20; +x_20 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +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; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_box(0); -x_23 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__1; -x_24 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2___closed__8; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_box(0); +x_24 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__1; +x_25 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2___closed__8; +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_25 = l_Lean_Meta_simpAll(x_20, x_18, x_23, x_24, x_7, x_8, x_9, x_10, x_21); -if (lean_obj_tag(x_25) == 0) +x_26 = l_Lean_Meta_simpAll(x_21, x_19, x_24, x_25, x_8, x_9, x_10, x_11, x_22); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); +lean_object* x_27; lean_object* x_28; x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -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_25, 1); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_25); +if (lean_obj_tag(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 = l_Lean_Elab_Tactic_replaceMainGoal(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_28); -if (lean_obj_tag(x_30) == 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_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__1(x_29, x_2, x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_31); -lean_dec(x_29); -return x_33; -} -else -{ -uint8_t x_34; -lean_dec(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_3); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_30); -if (x_34 == 0) -{ -return x_30; -} -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_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; -} -} -} -else -{ -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_25, 1); -lean_inc(x_38); -lean_dec(x_25); -x_39 = !lean_is_exclusive(x_26); -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_26, 1); -x_41 = lean_ctor_get(x_26, 0); -lean_dec(x_41); -x_42 = lean_ctor_get(x_27, 0); -lean_inc(x_42); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); lean_dec(x_27); -lean_ctor_set_tag(x_26, 1); -lean_ctor_set(x_26, 1, x_22); -lean_ctor_set(x_26, 0, x_42); -x_43 = l_Lean_Elab_Tactic_replaceMainGoal(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_38); -if (lean_obj_tag(x_43) == 0) +x_31 = l_Lean_Elab_Tactic_replaceMainGoal(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_29); +if (lean_obj_tag(x_31) == 0) { -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_Elab_Tactic_evalSimpAllTrace___lambda__1(x_40, x_2, x_1, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_45); +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 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__1(x_30, x_3, x_1, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_33); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_44); -lean_dec(x_40); -return x_46; +lean_dec(x_32); +lean_dec(x_30); +return x_34; } else { -uint8_t x_47; -lean_dec(x_40); +uint8_t x_35; +lean_dec(x_30); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2499,61 +2467,131 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_47 = !lean_is_exclusive(x_43); -if (x_47 == 0) +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) { -return x_43; +return x_31; } else { -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_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; +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_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 { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_26, 1); -lean_inc(x_51); +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_26, 1); +lean_inc(x_39); lean_dec(x_26); -x_52 = lean_ctor_get(x_27, 0); +x_40 = !lean_is_exclusive(x_27); +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_27, 1); +x_42 = lean_ctor_get(x_27, 0); +lean_dec(x_42); +x_43 = lean_ctor_get(x_28, 0); +lean_inc(x_43); +lean_dec(x_28); +lean_ctor_set_tag(x_27, 1); +lean_ctor_set(x_27, 1, x_23); +lean_ctor_set(x_27, 0, x_43); +x_44 = l_Lean_Elab_Tactic_replaceMainGoal(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_39); +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_Tactic_evalSimpAllTrace___lambda__1(x_41, x_3, x_1, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_45); +lean_dec(x_41); +return x_47; +} +else +{ +uint8_t x_48; +lean_dec(x_41); +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_48 = !lean_is_exclusive(x_44); +if (x_48 == 0) +{ +return x_44; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_44, 0); +x_50 = lean_ctor_get(x_44, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_44); +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; +x_52 = lean_ctor_get(x_27, 1); lean_inc(x_52); lean_dec(x_27); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_22); -x_54 = l_Lean_Elab_Tactic_replaceMainGoal(x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_38); -if (lean_obj_tag(x_54) == 0) +x_53 = lean_ctor_get(x_28, 0); +lean_inc(x_53); +lean_dec(x_28); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_23); +x_55 = l_Lean_Elab_Tactic_replaceMainGoal(x_54, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_39); +if (lean_obj_tag(x_55) == 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_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -lean_dec(x_54); -x_57 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__1(x_51, x_2, x_1, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_56); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); lean_dec(x_55); -lean_dec(x_51); -return x_57; +x_58 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__1(x_52, x_3, x_1, x_56, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_57); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_56); +lean_dec(x_52); +return x_58; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_51); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_52); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2562,34 +2600,34 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_58 = lean_ctor_get(x_54, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_54, 1); +x_59 = lean_ctor_get(x_55, 0); lean_inc(x_59); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_60 = x_54; +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_54); - x_60 = lean_box(0); + lean_dec_ref(x_55); + x_61 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_60; + x_62 = x_61; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; } } } } else { -uint8_t x_62; +uint8_t x_63; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2598,63 +2636,31 @@ 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_25); -if (x_62 == 0) +x_63 = !lean_is_exclusive(x_26); +if (x_63 == 0) { -return x_25; +return x_26; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_25, 0); -x_64 = lean_ctor_get(x_25, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_26, 0); +x_65 = lean_ctor_get(x_26, 1); +lean_inc(x_65); lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_25); -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_26); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } else { -uint8_t x_66; -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_66 = !lean_is_exclusive(x_19); -if (x_66 == 0) -{ -return x_19; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_19, 0); -x_68 = lean_ctor_get(x_19, 1); -lean_inc(x_68); -lean_inc(x_67); +uint8_t x_67; lean_dec(x_19); -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_70; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2663,24 +2669,56 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_15); -if (x_70 == 0) +x_67 = !lean_is_exclusive(x_20); +if (x_67 == 0) { -return x_15; +return x_20; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_15, 0); -x_72 = lean_ctor_get(x_15, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_15); -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_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_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 +{ +uint8_t x_75; +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_75 = !lean_is_exclusive(x_16); +if (x_75 == 0) +{ +return x_16; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_16, 0); +x_77 = lean_ctor_get(x_16, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_16); +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; } } } @@ -2843,7 +2881,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; x_36 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; lean_inc(x_35); x_37 = l_Lean_Syntax_node5(x_21, x_36, x_22, x_5, x_33, x_35, x_35); -x_38 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_37, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_38 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_37, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); return x_38; } else @@ -2876,7 +2914,7 @@ lean_ctor_set(x_48, 1, x_32); lean_ctor_set(x_48, 2, x_47); x_49 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; x_50 = l_Lean_Syntax_node5(x_21, x_49, x_22, x_5, x_33, x_35, x_48); -x_51 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_50, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_51 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_50, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); return x_51; } } @@ -2908,7 +2946,7 @@ lean_ctor_set(x_60, 1, x_32); lean_ctor_set(x_60, 2, x_59); x_61 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; x_62 = l_Lean_Syntax_node5(x_21, x_61, x_22, x_5, x_33, x_58, x_60); -x_63 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_63 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); return x_63; } else @@ -2941,7 +2979,7 @@ lean_ctor_set(x_73, 1, x_32); lean_ctor_set(x_73, 2, x_72); x_74 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; x_75 = l_Lean_Syntax_node5(x_21, x_74, x_22, x_5, x_33, x_58, x_73); -x_76 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_75, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_76 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_75, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); return x_76; } } @@ -3004,7 +3042,7 @@ lean_object* x_94; lean_object* x_95; lean_object* x_96; x_94 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; lean_inc(x_93); x_95 = l_Lean_Syntax_node5(x_21, x_94, x_86, x_5, x_91, x_93, x_93); -x_96 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_95, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); +x_96 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_95, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); return x_96; } else @@ -3037,7 +3075,7 @@ lean_ctor_set(x_106, 1, x_90); lean_ctor_set(x_106, 2, x_105); x_107 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; x_108 = l_Lean_Syntax_node5(x_21, x_107, x_86, x_5, x_91, x_93, x_106); -x_109 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_108, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); +x_109 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_108, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); return x_109; } } @@ -3069,7 +3107,7 @@ lean_ctor_set(x_118, 1, x_90); lean_ctor_set(x_118, 2, x_117); x_119 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; x_120 = l_Lean_Syntax_node5(x_21, x_119, x_86, x_5, x_91, x_116, x_118); -x_121 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_120, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); +x_121 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_120, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); return x_121; } else @@ -3102,7 +3140,7 @@ lean_ctor_set(x_131, 1, x_90); lean_ctor_set(x_131, 2, x_130); x_132 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__2; x_133 = l_Lean_Syntax_node5(x_21, x_132, x_86, x_5, x_91, x_116, x_131); -x_134 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_133, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); +x_134 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_133, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_82); return x_134; } } @@ -3176,7 +3214,7 @@ lean_object* x_157; lean_object* x_158; lean_object* x_159; x_157 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; lean_inc(x_156); x_158 = l_Lean_Syntax_node5(x_142, x_157, x_143, x_5, x_154, x_156, x_156); -x_159 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_158, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); +x_159 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_158, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); return x_159; } else @@ -3209,7 +3247,7 @@ lean_ctor_set(x_169, 1, x_153); lean_ctor_set(x_169, 2, x_168); x_170 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; x_171 = l_Lean_Syntax_node5(x_142, x_170, x_143, x_5, x_154, x_156, x_169); -x_172 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_171, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); +x_172 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_171, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); return x_172; } } @@ -3241,7 +3279,7 @@ lean_ctor_set(x_181, 1, x_153); lean_ctor_set(x_181, 2, x_180); x_182 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; x_183 = l_Lean_Syntax_node5(x_142, x_182, x_143, x_5, x_154, x_179, x_181); -x_184 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_183, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); +x_184 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_183, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); return x_184; } else @@ -3274,7 +3312,7 @@ lean_ctor_set(x_194, 1, x_153); lean_ctor_set(x_194, 2, x_193); x_195 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; x_196 = l_Lean_Syntax_node5(x_142, x_195, x_143, x_5, x_154, x_179, x_194); -x_197 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_196, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); +x_197 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_196, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_145); return x_197; } } @@ -3337,7 +3375,7 @@ lean_object* x_215; lean_object* x_216; lean_object* x_217; x_215 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; lean_inc(x_214); x_216 = l_Lean_Syntax_node5(x_142, x_215, x_207, x_5, x_212, x_214, x_214); -x_217 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_216, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); +x_217 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_216, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); return x_217; } else @@ -3370,7 +3408,7 @@ lean_ctor_set(x_227, 1, x_211); lean_ctor_set(x_227, 2, x_226); x_228 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; x_229 = l_Lean_Syntax_node5(x_142, x_228, x_207, x_5, x_212, x_214, x_227); -x_230 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_229, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); +x_230 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_229, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); return x_230; } } @@ -3402,7 +3440,7 @@ lean_ctor_set(x_239, 1, x_211); lean_ctor_set(x_239, 2, x_238); x_240 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; x_241 = l_Lean_Syntax_node5(x_142, x_240, x_207, x_5, x_212, x_237, x_239); -x_242 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_241, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); +x_242 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_241, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); return x_242; } else @@ -3435,7 +3473,7 @@ lean_ctor_set(x_252, 1, x_211); lean_ctor_set(x_252, 2, x_251); x_253 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__5; x_254 = l_Lean_Syntax_node5(x_142, x_253, x_207, x_5, x_212, x_237, x_252); -x_255 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_254, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); +x_255 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(x_2, x_3, x_254, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_203); return x_255; } } @@ -3785,13 +3823,14 @@ lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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_Lean_Elab_Tactic_evalSimpAllTrace___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) { _start: { -lean_object* x_12; -x_12 = l_Lean_Elab_Tactic_evalSimpAllTrace___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_13; +x_13 = l_Lean_Elab_Tactic_evalSimpAllTrace___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); +lean_dec(x_2); lean_dec(x_1); -return x_12; +return x_13; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { @@ -4507,23 +4546,24 @@ x_15 = l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2(x_1, x_2, x_3, x_14, x_5 return x_15; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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_Elab_Tactic_evalDSimpTrace___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: { -uint8_t 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; -x_13 = 0; -x_14 = 2; -x_15 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__1; -x_16 = lean_box(x_13); +uint8_t 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; +x_14 = 0; +x_15 = 2; +x_16 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__1; x_17 = lean_box(x_14); -x_18 = lean_box(x_13); -lean_inc(x_3); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_mkSimpContext___boxed), 14, 5); -lean_closure_set(x_19, 0, x_3); -lean_closure_set(x_19, 1, x_16); -lean_closure_set(x_19, 2, x_17); -lean_closure_set(x_19, 3, x_18); -lean_closure_set(x_19, 4, x_15); +x_18 = lean_box(x_15); +x_19 = lean_box(x_14); +lean_inc(x_4); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_mkSimpContext___boxed), 14, 5); +lean_closure_set(x_20, 0, x_4); +lean_closure_set(x_20, 1, x_17); +lean_closure_set(x_20, 2, x_18); +lean_closure_set(x_20, 3, x_19); +lean_closure_set(x_20, 4, x_16); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -4531,203 +4571,219 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_20 = l_Lean_Elab_Tactic_withMainContext___rarg(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_20) == 0) +x_21 = l_Lean_Elab_Tactic_withMainContext___rarg(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_21) == 0) { -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_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +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_21, 0); lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_21, 0); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +if (lean_obj_tag(x_3) == 0) +{ +x_26 = x_24; +goto block_65; +} +else +{ +lean_object* x_66; +x_66 = l_Lean_Meta_Simp_Context_setAutoUnfold(x_24); +x_26 = x_66; +goto block_65; +} +block_65: +{ +lean_object* x_27; if (lean_obj_tag(x_2) == 0) { -lean_object* x_60; -x_60 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__2; -x_25 = x_60; -goto block_59; +lean_object* x_62; +x_62 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__2; +x_27 = x_62; +goto block_61; } else { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_2, 0); -x_62 = l_Lean_Elab_Tactic_expandLocation(x_61); -x_25 = x_62; -goto block_59; +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_2, 0); +x_64 = l_Lean_Elab_Tactic_expandLocation(x_63); +x_27 = x_64; +goto block_61; } -block_59: +block_61: { -lean_object* x_26; +lean_object* x_28; +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_26 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_23, x_24, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -if (lean_obj_tag(x_26) == 0) +x_28 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_26, x_25, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -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_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_ctor_get(x_29, 0); +lean_inc(x_31); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_30 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_29, x_8, x_9, x_10, x_11, x_28); -lean_dec(x_29); -if (lean_obj_tag(x_30) == 0) +x_32 = l_Lean_Elab_Tactic_mkSimpCallStx(x_4, x_31, x_9, x_10, x_11, x_12, x_30); +lean_dec(x_31); +if (lean_obj_tag(x_32) == 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; -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_10, 5); +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_32, 0); lean_inc(x_33); -x_34 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_31); -x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_36); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_36); -x_38 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_38, 0, x_33); -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_32); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_ctor_get(x_11, 5); +lean_inc(x_35); +x_36 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_33); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_39, 2, x_38); +lean_ctor_set(x_39, 3, x_38); +lean_ctor_set(x_39, 4, x_38); +lean_ctor_set(x_39, 5, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_35); +x_41 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; +x_42 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_39, x_40, x_41, x_38, x_9, x_10, x_11, x_12, x_34); +lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_38); -if (lean_obj_tag(x_40) == 0) -{ -uint8_t x_41; -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -x_43 = lean_ctor_get(x_27, 1); -lean_inc(x_43); -lean_dec(x_27); -lean_ctor_set(x_40, 0, x_43); -return x_40; -} -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_dec(x_40); -x_45 = lean_ctor_get(x_27, 1); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_29, 1); lean_inc(x_45); -lean_dec(x_27); -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_29); +lean_ctor_set(x_42, 0, x_45); +return x_42; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_42, 1); +lean_inc(x_46); +lean_dec(x_42); +x_47 = lean_ctor_get(x_29, 1); +lean_inc(x_47); +lean_dec(x_29); +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_47; -lean_dec(x_27); -x_47 = !lean_is_exclusive(x_40); -if (x_47 == 0) +uint8_t x_49; +lean_dec(x_29); +x_49 = !lean_is_exclusive(x_42); +if (x_49 == 0) { -return x_40; +return x_42; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_40, 0); -x_49 = lean_ctor_get(x_40, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_40); -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; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_42, 0); +x_51 = lean_ctor_get(x_42, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_42); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } else { -uint8_t x_51; -lean_dec(x_27); +uint8_t x_53; +lean_dec(x_29); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -x_51 = !lean_is_exclusive(x_30); -if (x_51 == 0) +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) { -return x_30; +return x_32; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_30, 0); -x_53 = lean_ctor_get(x_30, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_30); -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_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_32); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -uint8_t x_55; +uint8_t x_57; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_55 = !lean_is_exclusive(x_26); -if (x_55 == 0) +lean_dec(x_4); +x_57 = !lean_is_exclusive(x_28); +if (x_57 == 0) { -return x_26; +return x_28; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_26, 0); -x_57 = lean_ctor_get(x_26, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_26); -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_28, 0); +x_59 = lean_ctor_get(x_28, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_28); +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_63; +uint8_t x_67; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4736,24 +4792,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_63 = !lean_is_exclusive(x_20); -if (x_63 == 0) +x_67 = !lean_is_exclusive(x_21); +if (x_67 == 0) { -return x_20; +return x_21; } else { -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_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_68; lean_object* x_69; lean_object* 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 = 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; } } } @@ -4916,7 +4971,7 @@ lean_object* x_39; lean_object* x_40; lean_object* x_41; x_39 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; lean_inc(x_38); x_40 = l_Lean_Syntax_node6(x_23, x_39, x_24, x_4, x_33, x_36, x_38, x_38); -x_41 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_40, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +x_41 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_40, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); return x_41; } else @@ -4934,7 +4989,7 @@ lean_ctor_set(x_45, 1, x_31); lean_ctor_set(x_45, 2, x_44); x_46 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; x_47 = l_Lean_Syntax_node6(x_23, x_46, x_24, x_4, x_33, x_36, x_38, x_45); -x_48 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +x_48 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); lean_dec(x_20); return x_48; } @@ -4978,7 +5033,7 @@ lean_ctor_set(x_60, 1, x_31); lean_ctor_set(x_60, 2, x_59); x_61 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; x_62 = l_Lean_Syntax_node6(x_23, x_61, x_24, x_4, x_33, x_36, x_58, x_60); -x_63 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +x_63 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); return x_63; } else @@ -4996,7 +5051,7 @@ lean_ctor_set(x_67, 1, x_31); lean_ctor_set(x_67, 2, x_66); x_68 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; x_69 = l_Lean_Syntax_node6(x_23, x_68, x_24, x_4, x_33, x_36, x_58, x_67); -x_70 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_69, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +x_70 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_69, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26); lean_dec(x_20); return x_70; } @@ -5065,7 +5120,7 @@ lean_object* x_90; lean_object* x_91; lean_object* x_92; x_90 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; lean_inc(x_89); x_91 = l_Lean_Syntax_node6(x_23, x_90, x_81, x_4, x_84, x_87, x_89, x_89); -x_92 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_91, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +x_92 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_91, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); return x_92; } else @@ -5083,7 +5138,7 @@ lean_ctor_set(x_96, 1, x_82); lean_ctor_set(x_96, 2, x_95); x_97 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; x_98 = l_Lean_Syntax_node6(x_23, x_97, x_81, x_4, x_84, x_87, x_89, x_96); -x_99 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_98, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +x_99 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_98, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); lean_dec(x_20); return x_99; } @@ -5127,7 +5182,7 @@ lean_ctor_set(x_111, 1, x_82); lean_ctor_set(x_111, 2, x_110); x_112 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; x_113 = l_Lean_Syntax_node6(x_23, x_112, x_81, x_4, x_84, x_87, x_109, x_111); -x_114 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_113, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +x_114 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_113, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); return x_114; } else @@ -5145,7 +5200,7 @@ lean_ctor_set(x_118, 1, x_82); lean_ctor_set(x_118, 2, x_117); x_119 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__2; x_120 = l_Lean_Syntax_node6(x_23, x_119, x_81, x_4, x_84, x_87, x_109, x_118); -x_121 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_120, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +x_121 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_120, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); lean_dec(x_20); return x_121; } @@ -5225,7 +5280,7 @@ lean_object* x_146; lean_object* x_147; lean_object* x_148; x_146 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; lean_inc(x_145); x_147 = l_Lean_Syntax_node6(x_130, x_146, x_131, x_4, x_140, x_143, x_145, x_145); -x_148 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_147, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); +x_148 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_147, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); return x_148; } else @@ -5243,7 +5298,7 @@ lean_ctor_set(x_152, 1, x_138); lean_ctor_set(x_152, 2, x_151); x_153 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; x_154 = l_Lean_Syntax_node6(x_130, x_153, x_131, x_4, x_140, x_143, x_145, x_152); -x_155 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_154, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); +x_155 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_154, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); lean_dec(x_20); return x_155; } @@ -5287,7 +5342,7 @@ lean_ctor_set(x_167, 1, x_138); lean_ctor_set(x_167, 2, x_166); x_168 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; x_169 = l_Lean_Syntax_node6(x_130, x_168, x_131, x_4, x_140, x_143, x_165, x_167); -x_170 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_169, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); +x_170 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_169, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); return x_170; } else @@ -5305,7 +5360,7 @@ lean_ctor_set(x_174, 1, x_138); lean_ctor_set(x_174, 2, x_173); x_175 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; x_176 = l_Lean_Syntax_node6(x_130, x_175, x_131, x_4, x_140, x_143, x_165, x_174); -x_177 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_176, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); +x_177 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_176, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); lean_dec(x_20); return x_177; } @@ -5374,7 +5429,7 @@ lean_object* x_197; lean_object* x_198; lean_object* x_199; x_197 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; lean_inc(x_196); x_198 = l_Lean_Syntax_node6(x_130, x_197, x_188, x_4, x_191, x_194, x_196, x_196); -x_199 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_198, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); +x_199 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_198, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); return x_199; } else @@ -5392,7 +5447,7 @@ lean_ctor_set(x_203, 1, x_189); lean_ctor_set(x_203, 2, x_202); x_204 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; x_205 = l_Lean_Syntax_node6(x_130, x_204, x_188, x_4, x_191, x_194, x_196, x_203); -x_206 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_205, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); +x_206 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_205, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); lean_dec(x_20); return x_206; } @@ -5436,7 +5491,7 @@ lean_ctor_set(x_218, 1, x_189); lean_ctor_set(x_218, 2, x_217); x_219 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; x_220 = l_Lean_Syntax_node6(x_130, x_219, x_188, x_4, x_191, x_194, x_216, x_218); -x_221 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_220, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); +x_221 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_220, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); return x_221; } else @@ -5454,7 +5509,7 @@ lean_ctor_set(x_225, 1, x_189); lean_ctor_set(x_225, 2, x_224); x_226 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___closed__4; x_227 = l_Lean_Syntax_node6(x_130, x_226, x_188, x_4, x_191, x_194, x_216, x_225); -x_228 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_227, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); +x_228 = l_Lean_Elab_Tactic_evalDSimpTrace___lambda__1(x_2, x_20, x_3, x_227, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_184); lean_dec(x_20); return x_228; } @@ -5766,14 +5821,15 @@ return x_33; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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_Elab_Tactic_evalDSimpTrace___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_13; -x_13 = l_Lean_Elab_Tactic_evalDSimpTrace___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_14; +x_14 = l_Lean_Elab_Tactic_evalDSimpTrace___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_3); lean_dec(x_2); lean_dec(x_1); -return x_13; +return x_14; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index d9deb246ce..eaf021000d 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -61,6 +61,7 @@ LEAN_EXPORT lean_object* l_Lean_Option_set___at_Lean_Environment_realizeConst___ static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModules___spec__1___closed__2; LEAN_EXPORT lean_object* lean_elab_environment_of_kernel_env(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_getStateImpl___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_findAsyncCore_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*); static lean_object* l_Lean_PersistentEnvExtensionDescr_name___autoParam___closed__11; @@ -98,7 +99,6 @@ static lean_object* l___private_Lean_Environment_0__Lean_Environment_mkFallbackC LEAN_EXPORT lean_object* lean_kernel_set_diag(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_constants(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_looksLikeOldCodegenName___closed__12; -LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_equivInfo(lean_object*, lean_object*); static lean_object* l_Lean_readModuleData___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_AsyncConsts_findRecTask___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -151,6 +151,7 @@ LEAN_EXPORT lean_object* l_Lean_finalizeImport_unsafe__3___boxed(lean_object*); size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Lean_finalizeImport___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withExporting___rarg___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_subsumesInfo___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lean_Environment_dbgFormatAsyncState___spec__21(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_importModulesCore___spec__3(lean_object*); static lean_object* l_Lean_instModuleIdxBEq___closed__2; @@ -210,6 +211,7 @@ uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_importModulesCore(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_PersistentEnvExtensionDescr_name___autoParam___closed__14; static lean_object* l_Lean_Environment_realizeConst___closed__1; +LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_subsumesInfo(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState_unsafe__3___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1336____closed__15; static lean_object* l___private_Lean_Environment_0__Lean_looksLikeOldCodegenName___closed__11; @@ -247,6 +249,7 @@ static lean_object* l_Lean_Environment_promiseChecked___closed__2; LEAN_EXPORT lean_object* l_Lean_OLeanLevel_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__3___closed__1; +static lean_object* l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; static lean_object* l_Lean_instInhabitedEnvExtension___closed__1; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1336____closed__44; LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -302,7 +305,6 @@ LEAN_EXPORT lean_object* l_Lean_importModules___lambda__1(uint8_t, lean_object*, LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instImpl____x40_Lean_Environment___hyg_1961____closed__8; LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_looksLikeOldCodegenName(lean_object*); -LEAN_EXPORT lean_object* l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501_(lean_object*); LEAN_EXPORT lean_object* l_Lean_finalizeImport_unsafe__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__8(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_addDeclCore___closed__2; @@ -322,7 +324,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_mkInitialExtension static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__8___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState_unsafe__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addExtraName(lean_object*, lean_object*); -static lean_object* l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_setStateImpl___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EStateM_instMonad(lean_object*, lean_object*); @@ -477,6 +478,7 @@ LEAN_EXPORT lean_object* l_Lean_instToStringImport(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_AsyncConsts_findRecTask___lambda__2(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Environment_addConstAsync___lambda__8___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_registerPersistentEnvExtensionUnsafe___spec__1___rarg(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_findStateAsyncUnsafe(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_findAsyncCore_x3f___lambda__3(uint8_t, lean_object*, lean_object*, lean_object*); @@ -597,7 +599,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Environment_enableRealizationsForConst___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_findStateAsyncUnsafe___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_isSafeDefinition___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5___boxed(lean_object*); lean_object* lean_array_to_list(lean_object*); static lean_object* l_Prod_repr___at_Lean_Environment_dbgFormatAsyncState___spec__14___closed__4; static lean_object* l_Lean_instInhabitedModuleData___closed__1; @@ -650,6 +652,7 @@ static lean_object* l_Lean_instGetElem_x3fArrayModuleIdxLtNatToNatSize___closed_ LEAN_EXPORT lean_object* l_Lean_Environment_setMainModule(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addDeclCore___lambda__1(uint8_t, lean_object*, lean_object*, size_t, lean_object*, lean_object*); static lean_object* l_Lean_instToStringImport___closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_8434_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_looksLikeOldCodegenName___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Environment_dbgFormatAsyncState___spec__24(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__2; @@ -733,6 +736,7 @@ LEAN_EXPORT lean_object* l_Lean_Environment_promiseChecked___lambda__1(lean_obje static lean_object* l_Lean_withoutExporting___rarg___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_instInhabitedImport; static lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState___spec__8___closed__11; +static lean_object* l_Lean_Environment_addConstAsync___lambda__8___closed__2; static lean_object* l_Lean_mkEmptyEnvironment___closed__2; lean_object* lean_task_get_own(lean_object*); extern lean_object* l_Std_Format_defWidth; @@ -774,7 +778,8 @@ LEAN_EXPORT lean_object* l_Lean_Environment_enableRealizationsForConst___lambda_ LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_addDeclCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedEnvExtension___lambda__1___closed__2; static lean_object* l_Lean_PersistentEnvExtensionDescr_name___autoParam___closed__15; -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Prod_repr___at_Lean_Environment_dbgFormatAsyncState___spec__14(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Environment_replayConsts_replayKernel___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -796,7 +801,6 @@ static lean_object* l_List_foldl___at___private_Lean_Environment_0__Lean_Environ lean_object* l_Lean_withImporting___rarg(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedAsyncConstantInfo___closed__1; LEAN_EXPORT lean_object* l_Lean_SMap_contains___at_Lean_Environment_addExtraName___spec__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Environment_addConstAsync___lambda__7___closed__1; LEAN_EXPORT lean_object* l_Lean_finalizeImport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_throwUnexpectedType(lean_object*); LEAN_EXPORT lean_object* l_Prod_repr___at_Lean_Environment_dbgFormatAsyncState___spec__20___boxed(lean_object*, lean_object*); @@ -833,7 +837,7 @@ LEAN_EXPORT lean_object* l_Lean_registerEnvExtension_unsafe__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_findTaskCore___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_findStateAsyncUnsafe___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_hasUnsafe___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Environment_realizeConst___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_repr___at_Lean_Environment_dbgFormatAsyncState___spec__29(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtension_modifyState___rarg___closed__9; @@ -918,7 +922,7 @@ lean_object* l_Lean_findOLean(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___spec__1(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtension_modifyState___rarg___closed__7; -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7(lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__8___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_isConstructor___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1009,6 +1013,7 @@ LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___la LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_finalizePersistentExtensions(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionStateSpec; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_findTaskCore___lambda__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__8(lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_CompactedRegion_free___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_invalidExtMsg___closed__1; @@ -1039,8 +1044,8 @@ static lean_object* l_Lean_Environment_realizeConst___lambda__5___closed__4; static lean_object* l_Lean_Environment_enableRealizationsForConst___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6_(lean_object*); LEAN_EXPORT lean_object* l_Lean_withExporting___rarg___lambda__2(uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_imports(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1336____closed__36; static lean_object* l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__10; @@ -1075,7 +1080,7 @@ LEAN_EXPORT lean_object* l_List_toString___at_Lean_Environment_dbgFormatAsyncSta LEAN_EXPORT lean_object* l_Lean_RBMap_toList___at_Lean_Environment_dbgFormatAsyncState___spec__1___boxed(lean_object*); static lean_object* l_Lean_EnvExtension_modifyState___rarg___closed__2; static lean_object* l_Lean_PersistentEnvExtensionDescr_name___autoParam___closed__27; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___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_Environment_getModuleIdxFor_x3f___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_findStateAsyncUnsafe_findRecExts_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -1121,7 +1126,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_mkModuleData___spec static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Kernel_Environment_find_x3f___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Environment_findTask___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_repr___at_Lean_Environment_dbgFormatAsyncState___spec__9(lean_object*); static lean_object* l_Lean_EnvExtension_modifyState___rarg___closed__10; static lean_object* l_Lean_Kernel_instInhabitedDiagnostics___closed__3; @@ -1137,7 +1142,6 @@ LEAN_EXPORT lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState__ static lean_object* l___private_Lean_Environment_0__Lean_looksLikeOldCodegenName___closed__8; LEAN_EXPORT lean_object* l_Lean_Environment_findTask___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_evalConstCheck___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_8371_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_modifyStateImpl___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Prod_repr___at_Lean_Environment_dbgFormatAsyncState___spec__14___closed__1; LEAN_EXPORT lean_object* l_Lean_instGetElemArrayModuleIdxLtNatToNatSize___rarg(lean_object*, lean_object*, lean_object*); @@ -1192,7 +1196,6 @@ lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_enableDiag___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_mkModuleData___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_equivInfo___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_environment_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState___spec__12___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules(lean_object*, lean_object*, uint32_t, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*); @@ -12317,7 +12320,7 @@ x_26 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__3; x_27 = lean_string_append(x_25, x_26); x_28 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_29 = l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__17; -x_30 = lean_unsigned_to_nat(918u); +x_30 = lean_unsigned_to_nat(919u); x_31 = lean_unsigned_to_nat(11u); x_32 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_28, x_29, x_30, x_31, x_27); lean_dec(x_27); @@ -12421,7 +12424,30 @@ return x_6; } } } -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l___private_Lean_Environment_0__Lean_Environment_lakeAdd___closed__1; +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, 4); +x_5 = l_Lean_instTypeNameAsyncConsts; +lean_inc(x_4); +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; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12442,7 +12468,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__6(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12462,7 +12488,7 @@ return x_5; } } } -static lean_object* _init_l_Lean_Environment_addConstAsync___lambda__7___closed__1() { +static lean_object* _init_l_Lean_Environment_addConstAsync___lambda__8___closed__1() { _start: { lean_object* x_1; @@ -12470,7 +12496,15 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__3___ return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +static lean_object* _init_l_Lean_Environment_addConstAsync___lambda__8___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__5___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__8(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, uint8_t 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; uint8_t x_18; @@ -12496,7 +12530,7 @@ x_17 = lean_io_promise_new(x_16); 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; lean_object* x_23; uint8_t 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; uint8_t 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_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; 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; lean_object* x_53; lean_object* x_54; uint8_t x_55; x_19 = lean_ctor_get(x_17, 0); x_20 = lean_box(x_2); lean_inc(x_1); @@ -12522,7 +12556,7 @@ lean_ctor_set(x_30, 0, x_1); lean_ctor_set(x_30, 1, x_25); lean_ctor_set(x_30, 2, x_29); lean_ctor_set_uint8(x_30, sizeof(void*)*3, x_2); -x_31 = l_Lean_Environment_addConstAsync___lambda__7___closed__1; +x_31 = l_Lean_Environment_addConstAsync___lambda__8___closed__1; lean_inc(x_28); x_32 = lean_task_map(x_31, x_28, x_23, x_24); x_33 = lean_box(x_3); @@ -12538,123 +12572,124 @@ lean_ctor_set(x_36, 0, x_1); lean_ctor_set(x_36, 1, x_25); lean_ctor_set(x_36, 2, x_35); lean_ctor_set_uint8(x_36, sizeof(void*)*3, x_3); -x_37 = lean_ctor_get(x_4, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_4, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_4, 3); +x_37 = l_Lean_Environment_addConstAsync___lambda__8___closed__2; +lean_inc(x_28); +x_38 = lean_task_map(x_37, x_28, x_23, x_24); +x_39 = lean_ctor_get(x_4, 0); lean_inc(x_39); -x_40 = lean_ctor_get(x_4, 4); +x_40 = lean_ctor_get(x_4, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_4, 5); +x_41 = lean_ctor_get(x_4, 3); lean_inc(x_41); -x_42 = lean_ctor_get(x_4, 6); +x_42 = lean_ctor_get(x_4, 4); lean_inc(x_42); -x_43 = lean_ctor_get(x_4, 7); +x_43 = lean_ctor_get(x_4, 5); lean_inc(x_43); -x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); -x_45 = lean_io_promise_result_opt(x_19); +x_44 = lean_ctor_get(x_4, 6); +lean_inc(x_44); +x_45 = lean_ctor_get(x_4, 7); +lean_inc(x_45); +x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_47 = lean_io_promise_result_opt(x_19); lean_inc(x_4); -x_46 = lean_alloc_closure((void*)(l_Lean_Environment_promiseChecked___lambda__1___boxed), 2, 1); -lean_closure_set(x_46, 0, x_4); -x_47 = lean_task_bind(x_45, x_46, x_23, x_24); -x_48 = lean_io_promise_result_opt(x_15); +x_48 = lean_alloc_closure((void*)(l_Lean_Environment_promiseChecked___lambda__1___boxed), 2, 1); +lean_closure_set(x_48, 0, x_4); +x_49 = lean_task_bind(x_47, x_48, x_23, x_24); +x_50 = lean_io_promise_result_opt(x_15); lean_inc(x_4); -x_49 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__5___boxed), 2, 1); -lean_closure_set(x_49, 0, x_4); -x_50 = lean_task_bind(x_48, x_49, x_23, x_24); -x_51 = lean_box(0); +x_51 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__6___boxed), 2, 1); +lean_closure_set(x_51, 0, x_4); +x_52 = lean_task_bind(x_50, x_51, x_23, x_24); +x_53 = lean_box(0); lean_inc(x_4); lean_inc(x_1); -x_52 = l___private_Lean_Environment_0__Lean_Environment_enterAsync(x_1, x_51, x_4); -x_53 = !lean_is_exclusive(x_4); -if (x_53 == 0) +x_54 = l___private_Lean_Environment_0__Lean_Environment_enterAsync(x_1, x_53, x_4); +x_55 = !lean_is_exclusive(x_4); +if (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; lean_object* x_62; -x_54 = lean_ctor_get(x_4, 8); -lean_dec(x_54); -x_55 = lean_ctor_get(x_4, 7); -lean_dec(x_55); -x_56 = lean_ctor_get(x_4, 6); +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_56 = lean_ctor_get(x_4, 8); lean_dec(x_56); -x_57 = lean_ctor_get(x_4, 5); +x_57 = lean_ctor_get(x_4, 7); lean_dec(x_57); -x_58 = lean_ctor_get(x_4, 4); +x_58 = lean_ctor_get(x_4, 6); lean_dec(x_58); -x_59 = lean_ctor_get(x_4, 3); +x_59 = lean_ctor_get(x_4, 5); lean_dec(x_59); -x_60 = lean_ctor_get(x_4, 2); +x_60 = lean_ctor_get(x_4, 4); lean_dec(x_60); -x_61 = lean_ctor_get(x_4, 1); +x_61 = lean_ctor_get(x_4, 3); lean_dec(x_61); -x_62 = lean_ctor_get(x_4, 0); +x_62 = lean_ctor_get(x_4, 2); lean_dec(x_62); +x_63 = lean_ctor_get(x_4, 1); +lean_dec(x_63); +x_64 = lean_ctor_get(x_4, 0); +lean_dec(x_64); if (x_5 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_dec(x_28); -lean_inc(x_32); -x_63 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_63, 0, x_30); -lean_ctor_set(x_63, 1, x_51); -lean_ctor_set(x_63, 2, x_32); -x_64 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_64, 0, x_36); -lean_ctor_set(x_64, 1, x_51); -lean_ctor_set(x_64, 2, x_32); -x_65 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_39, x_63); -x_66 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_40, x_64); -lean_ctor_set(x_4, 8, x_50); -lean_ctor_set(x_4, 4, x_66); -lean_ctor_set(x_4, 3, x_65); -lean_ctor_set(x_4, 2, x_47); -x_67 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_67, 0, x_4); -lean_ctor_set(x_67, 1, x_52); -lean_ctor_set(x_67, 2, x_1); -lean_ctor_set(x_67, 3, x_9); -lean_ctor_set(x_67, 4, x_12); -lean_ctor_set(x_67, 5, x_19); -lean_ctor_set(x_67, 6, x_15); -lean_ctor_set_uint8(x_67, sizeof(void*)*7, x_2); -lean_ctor_set(x_17, 0, x_67); +x_65 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_65, 0, x_30); +lean_ctor_set(x_65, 1, x_53); +lean_ctor_set(x_65, 2, x_32); +x_66 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_66, 0, x_36); +lean_ctor_set(x_66, 1, x_53); +lean_ctor_set(x_66, 2, x_38); +x_67 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_41, x_65); +x_68 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_42, x_66); +lean_ctor_set(x_4, 8, x_52); +lean_ctor_set(x_4, 4, x_68); +lean_ctor_set(x_4, 3, x_67); +lean_ctor_set(x_4, 2, x_49); +x_69 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_69, 0, x_4); +lean_ctor_set(x_69, 1, x_54); +lean_ctor_set(x_69, 2, x_1); +lean_ctor_set(x_69, 3, x_9); +lean_ctor_set(x_69, 4, x_12); +lean_ctor_set(x_69, 5, x_19); +lean_ctor_set(x_69, 6, x_15); +lean_ctor_set_uint8(x_69, sizeof(void*)*7, x_2); +lean_ctor_set(x_17, 0, x_69); return x_17; } 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_75; -lean_inc(x_37); -x_68 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__6___boxed), 2, 1); -lean_closure_set(x_68, 0, x_37); -x_69 = lean_task_map(x_68, x_28, x_23, x_24); -x_70 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_70, 0, x_69); -lean_inc(x_32); -lean_inc(x_70); -x_71 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_71, 0, x_30); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_71, 2, x_32); -x_72 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_72, 0, x_36); -lean_ctor_set(x_72, 1, x_70); -lean_ctor_set(x_72, 2, x_32); -x_73 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_39, x_71); -x_74 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_40, x_72); -lean_ctor_set(x_4, 8, x_50); -lean_ctor_set(x_4, 4, x_74); -lean_ctor_set(x_4, 3, x_73); -lean_ctor_set(x_4, 2, x_47); -x_75 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_75, 0, x_4); -lean_ctor_set(x_75, 1, x_52); -lean_ctor_set(x_75, 2, x_1); -lean_ctor_set(x_75, 3, x_9); -lean_ctor_set(x_75, 4, x_12); -lean_ctor_set(x_75, 5, x_19); -lean_ctor_set(x_75, 6, x_15); -lean_ctor_set_uint8(x_75, sizeof(void*)*7, x_2); -lean_ctor_set(x_17, 0, x_75); +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_inc(x_39); +x_70 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__7___boxed), 2, 1); +lean_closure_set(x_70, 0, x_39); +x_71 = lean_task_map(x_70, x_28, x_23, x_24); +x_72 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_72, 0, x_71); +lean_inc(x_72); +x_73 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_73, 0, x_30); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_32); +x_74 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_74, 0, x_36); +lean_ctor_set(x_74, 1, x_72); +lean_ctor_set(x_74, 2, x_38); +x_75 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_41, x_73); +x_76 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_42, x_74); +lean_ctor_set(x_4, 8, x_52); +lean_ctor_set(x_4, 4, x_76); +lean_ctor_set(x_4, 3, x_75); +lean_ctor_set(x_4, 2, x_49); +x_77 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_77, 0, x_4); +lean_ctor_set(x_77, 1, x_54); +lean_ctor_set(x_77, 2, x_1); +lean_ctor_set(x_77, 3, x_9); +lean_ctor_set(x_77, 4, x_12); +lean_ctor_set(x_77, 5, x_19); +lean_ctor_set(x_77, 6, x_15); +lean_ctor_set_uint8(x_77, sizeof(void*)*7, x_2); +lean_ctor_set(x_17, 0, x_77); return x_17; } } @@ -12663,165 +12698,166 @@ else lean_dec(x_4); if (x_5 == 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_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_dec(x_28); -lean_inc(x_32); -x_76 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_76, 0, x_30); -lean_ctor_set(x_76, 1, x_51); -lean_ctor_set(x_76, 2, x_32); -x_77 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_77, 0, x_36); -lean_ctor_set(x_77, 1, x_51); -lean_ctor_set(x_77, 2, x_32); -x_78 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_39, x_76); -x_79 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_40, x_77); -x_80 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_80, 0, x_37); -lean_ctor_set(x_80, 1, x_38); -lean_ctor_set(x_80, 2, x_47); -lean_ctor_set(x_80, 3, x_78); -lean_ctor_set(x_80, 4, x_79); -lean_ctor_set(x_80, 5, x_41); -lean_ctor_set(x_80, 6, x_42); -lean_ctor_set(x_80, 7, x_43); -lean_ctor_set(x_80, 8, x_50); -lean_ctor_set_uint8(x_80, sizeof(void*)*9, x_44); -x_81 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_52); -lean_ctor_set(x_81, 2, x_1); -lean_ctor_set(x_81, 3, x_9); -lean_ctor_set(x_81, 4, x_12); -lean_ctor_set(x_81, 5, x_19); -lean_ctor_set(x_81, 6, x_15); -lean_ctor_set_uint8(x_81, sizeof(void*)*7, x_2); -lean_ctor_set(x_17, 0, x_81); +x_78 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_78, 0, x_30); +lean_ctor_set(x_78, 1, x_53); +lean_ctor_set(x_78, 2, x_32); +x_79 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_79, 0, x_36); +lean_ctor_set(x_79, 1, x_53); +lean_ctor_set(x_79, 2, x_38); +x_80 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_41, x_78); +x_81 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_42, x_79); +x_82 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_82, 0, x_39); +lean_ctor_set(x_82, 1, x_40); +lean_ctor_set(x_82, 2, x_49); +lean_ctor_set(x_82, 3, x_80); +lean_ctor_set(x_82, 4, x_81); +lean_ctor_set(x_82, 5, x_43); +lean_ctor_set(x_82, 6, x_44); +lean_ctor_set(x_82, 7, x_45); +lean_ctor_set(x_82, 8, x_52); +lean_ctor_set_uint8(x_82, sizeof(void*)*9, x_46); +x_83 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_54); +lean_ctor_set(x_83, 2, x_1); +lean_ctor_set(x_83, 3, x_9); +lean_ctor_set(x_83, 4, x_12); +lean_ctor_set(x_83, 5, x_19); +lean_ctor_set(x_83, 6, x_15); +lean_ctor_set_uint8(x_83, sizeof(void*)*7, x_2); +lean_ctor_set(x_17, 0, x_83); return x_17; } 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; lean_object* x_90; -lean_inc(x_37); -x_82 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__6___boxed), 2, 1); -lean_closure_set(x_82, 0, x_37); -x_83 = lean_task_map(x_82, x_28, x_23, x_24); -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_83); -lean_inc(x_32); -lean_inc(x_84); -x_85 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_85, 0, x_30); -lean_ctor_set(x_85, 1, x_84); -lean_ctor_set(x_85, 2, x_32); -x_86 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_86, 0, x_36); -lean_ctor_set(x_86, 1, x_84); -lean_ctor_set(x_86, 2, x_32); -x_87 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_39, x_85); -x_88 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_40, x_86); -x_89 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_89, 0, x_37); -lean_ctor_set(x_89, 1, x_38); -lean_ctor_set(x_89, 2, x_47); -lean_ctor_set(x_89, 3, x_87); -lean_ctor_set(x_89, 4, x_88); -lean_ctor_set(x_89, 5, x_41); -lean_ctor_set(x_89, 6, x_42); -lean_ctor_set(x_89, 7, x_43); -lean_ctor_set(x_89, 8, x_50); -lean_ctor_set_uint8(x_89, sizeof(void*)*9, x_44); -x_90 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_52); -lean_ctor_set(x_90, 2, x_1); -lean_ctor_set(x_90, 3, x_9); -lean_ctor_set(x_90, 4, x_12); -lean_ctor_set(x_90, 5, x_19); -lean_ctor_set(x_90, 6, x_15); -lean_ctor_set_uint8(x_90, sizeof(void*)*7, x_2); -lean_ctor_set(x_17, 0, x_90); +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_inc(x_39); +x_84 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__7___boxed), 2, 1); +lean_closure_set(x_84, 0, x_39); +x_85 = lean_task_map(x_84, x_28, x_23, x_24); +x_86 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_86, 0, x_85); +lean_inc(x_86); +x_87 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_87, 0, x_30); +lean_ctor_set(x_87, 1, x_86); +lean_ctor_set(x_87, 2, x_32); +x_88 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_88, 0, x_36); +lean_ctor_set(x_88, 1, x_86); +lean_ctor_set(x_88, 2, x_38); +x_89 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_41, x_87); +x_90 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_42, x_88); +x_91 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_91, 0, x_39); +lean_ctor_set(x_91, 1, x_40); +lean_ctor_set(x_91, 2, x_49); +lean_ctor_set(x_91, 3, x_89); +lean_ctor_set(x_91, 4, x_90); +lean_ctor_set(x_91, 5, x_43); +lean_ctor_set(x_91, 6, x_44); +lean_ctor_set(x_91, 7, x_45); +lean_ctor_set(x_91, 8, x_52); +lean_ctor_set_uint8(x_91, sizeof(void*)*9, x_46); +x_92 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_54); +lean_ctor_set(x_92, 2, x_1); +lean_ctor_set(x_92, 3, x_9); +lean_ctor_set(x_92, 4, x_12); +lean_ctor_set(x_92, 5, x_19); +lean_ctor_set(x_92, 6, x_15); +lean_ctor_set_uint8(x_92, sizeof(void*)*7, x_2); +lean_ctor_set(x_17, 0, x_92); return x_17; } } } 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; uint8_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; 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; -x_91 = lean_ctor_get(x_17, 0); -x_92 = lean_ctor_get(x_17, 1); -lean_inc(x_92); -lean_inc(x_91); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 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; 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_object* x_129; lean_object* x_130; +x_93 = lean_ctor_get(x_17, 0); +x_94 = lean_ctor_get(x_17, 1); +lean_inc(x_94); +lean_inc(x_93); lean_dec(x_17); -x_93 = lean_box(x_2); +x_95 = lean_box(x_2); lean_inc(x_1); -x_94 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__1___boxed), 3, 2); -lean_closure_set(x_94, 0, x_1); -lean_closure_set(x_94, 1, x_93); -x_95 = lean_io_promise_result_opt(x_9); -x_96 = l_Task_Priority_default; -x_97 = 1; -x_98 = lean_task_map(x_94, x_95, x_96, x_97); -x_99 = lean_box(x_2); +x_96 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__1___boxed), 3, 2); +lean_closure_set(x_96, 0, x_1); +lean_closure_set(x_96, 1, x_95); +x_97 = lean_io_promise_result_opt(x_9); +x_98 = l_Task_Priority_default; +x_99 = 1; +x_100 = lean_task_map(x_96, x_97, x_98, x_99); +x_101 = lean_box(x_2); lean_inc(x_1); -x_100 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__2___boxed), 3, 2); -lean_closure_set(x_100, 0, x_1); -lean_closure_set(x_100, 1, x_99); -x_101 = lean_io_promise_result_opt(x_12); -lean_inc(x_101); -x_102 = lean_task_map(x_100, x_101, x_96, x_97); -lean_inc(x_98); +x_102 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__2___boxed), 3, 2); +lean_closure_set(x_102, 0, x_1); +lean_closure_set(x_102, 1, x_101); +x_103 = lean_io_promise_result_opt(x_12); +lean_inc(x_103); +x_104 = lean_task_map(x_102, x_103, x_98, x_99); +lean_inc(x_100); lean_inc(x_1); -x_103 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_103, 0, x_1); -lean_ctor_set(x_103, 1, x_98); -lean_ctor_set(x_103, 2, x_102); -lean_ctor_set_uint8(x_103, sizeof(void*)*3, x_2); -x_104 = l_Lean_Environment_addConstAsync___lambda__7___closed__1; -lean_inc(x_101); -x_105 = lean_task_map(x_104, x_101, x_96, x_97); -x_106 = lean_box(x_3); +x_105 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_105, 0, x_1); +lean_ctor_set(x_105, 1, x_100); +lean_ctor_set(x_105, 2, x_104); +lean_ctor_set_uint8(x_105, sizeof(void*)*3, x_2); +x_106 = l_Lean_Environment_addConstAsync___lambda__8___closed__1; +lean_inc(x_103); +x_107 = lean_task_map(x_106, x_103, x_98, x_99); +x_108 = lean_box(x_3); lean_inc(x_1); -x_107 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__4___boxed), 3, 2); -lean_closure_set(x_107, 0, x_1); -lean_closure_set(x_107, 1, x_106); -lean_inc(x_101); -x_108 = lean_task_map(x_107, x_101, x_96, x_97); +x_109 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__4___boxed), 3, 2); +lean_closure_set(x_109, 0, x_1); +lean_closure_set(x_109, 1, x_108); +lean_inc(x_103); +x_110 = lean_task_map(x_109, x_103, x_98, x_99); lean_inc(x_1); -x_109 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_109, 0, x_1); -lean_ctor_set(x_109, 1, x_98); -lean_ctor_set(x_109, 2, x_108); -lean_ctor_set_uint8(x_109, sizeof(void*)*3, x_3); -x_110 = lean_ctor_get(x_4, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_4, 1); -lean_inc(x_111); -x_112 = lean_ctor_get(x_4, 3); -lean_inc(x_112); -x_113 = lean_ctor_get(x_4, 4); -lean_inc(x_113); -x_114 = lean_ctor_get(x_4, 5); +x_111 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_111, 0, x_1); +lean_ctor_set(x_111, 1, x_100); +lean_ctor_set(x_111, 2, x_110); +lean_ctor_set_uint8(x_111, sizeof(void*)*3, x_3); +x_112 = l_Lean_Environment_addConstAsync___lambda__8___closed__2; +lean_inc(x_103); +x_113 = lean_task_map(x_112, x_103, x_98, x_99); +x_114 = lean_ctor_get(x_4, 0); lean_inc(x_114); -x_115 = lean_ctor_get(x_4, 6); +x_115 = lean_ctor_get(x_4, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_4, 7); +x_116 = lean_ctor_get(x_4, 3); lean_inc(x_116); -x_117 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); -x_118 = lean_io_promise_result_opt(x_91); +x_117 = lean_ctor_get(x_4, 4); +lean_inc(x_117); +x_118 = lean_ctor_get(x_4, 5); +lean_inc(x_118); +x_119 = lean_ctor_get(x_4, 6); +lean_inc(x_119); +x_120 = lean_ctor_get(x_4, 7); +lean_inc(x_120); +x_121 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_122 = lean_io_promise_result_opt(x_93); lean_inc(x_4); -x_119 = lean_alloc_closure((void*)(l_Lean_Environment_promiseChecked___lambda__1___boxed), 2, 1); -lean_closure_set(x_119, 0, x_4); -x_120 = lean_task_bind(x_118, x_119, x_96, x_97); -x_121 = lean_io_promise_result_opt(x_15); +x_123 = lean_alloc_closure((void*)(l_Lean_Environment_promiseChecked___lambda__1___boxed), 2, 1); +lean_closure_set(x_123, 0, x_4); +x_124 = lean_task_bind(x_122, x_123, x_98, x_99); +x_125 = lean_io_promise_result_opt(x_15); lean_inc(x_4); -x_122 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__5___boxed), 2, 1); -lean_closure_set(x_122, 0, x_4); -x_123 = lean_task_bind(x_121, x_122, x_96, x_97); -x_124 = lean_box(0); +x_126 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__6___boxed), 2, 1); +lean_closure_set(x_126, 0, x_4); +x_127 = lean_task_bind(x_125, x_126, x_98, x_99); +x_128 = lean_box(0); lean_inc(x_4); lean_inc(x_1); -x_125 = l___private_Lean_Environment_0__Lean_Environment_enterAsync(x_1, x_124, x_4); +x_129 = l___private_Lean_Environment_0__Lean_Environment_enterAsync(x_1, x_128, x_4); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); @@ -12832,104 +12868,102 @@ 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_126 = x_4; + x_130 = x_4; } else { lean_dec_ref(x_4); - x_126 = lean_box(0); + x_130 = lean_box(0); } if (x_5 == 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_dec(x_101); -lean_inc(x_105); -x_127 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_127, 0, x_103); -lean_ctor_set(x_127, 1, x_124); -lean_ctor_set(x_127, 2, x_105); -x_128 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_128, 0, x_109); -lean_ctor_set(x_128, 1, x_124); -lean_ctor_set(x_128, 2, x_105); -x_129 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_112, x_127); -x_130 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_113, x_128); -if (lean_is_scalar(x_126)) { - x_131 = lean_alloc_ctor(0, 9, 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; +lean_dec(x_103); +x_131 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_131, 0, x_105); +lean_ctor_set(x_131, 1, x_128); +lean_ctor_set(x_131, 2, x_107); +x_132 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_132, 0, x_111); +lean_ctor_set(x_132, 1, x_128); +lean_ctor_set(x_132, 2, x_113); +x_133 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_116, x_131); +x_134 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_117, x_132); +if (lean_is_scalar(x_130)) { + x_135 = lean_alloc_ctor(0, 9, 1); } else { - x_131 = x_126; + x_135 = x_130; } -lean_ctor_set(x_131, 0, x_110); -lean_ctor_set(x_131, 1, x_111); -lean_ctor_set(x_131, 2, x_120); -lean_ctor_set(x_131, 3, x_129); -lean_ctor_set(x_131, 4, x_130); -lean_ctor_set(x_131, 5, x_114); -lean_ctor_set(x_131, 6, x_115); -lean_ctor_set(x_131, 7, x_116); -lean_ctor_set(x_131, 8, x_123); -lean_ctor_set_uint8(x_131, sizeof(void*)*9, x_117); -x_132 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_125); -lean_ctor_set(x_132, 2, x_1); -lean_ctor_set(x_132, 3, x_9); -lean_ctor_set(x_132, 4, x_12); -lean_ctor_set(x_132, 5, x_91); -lean_ctor_set(x_132, 6, x_15); -lean_ctor_set_uint8(x_132, sizeof(void*)*7, x_2); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_92); -return x_133; +lean_ctor_set(x_135, 0, x_114); +lean_ctor_set(x_135, 1, x_115); +lean_ctor_set(x_135, 2, x_124); +lean_ctor_set(x_135, 3, x_133); +lean_ctor_set(x_135, 4, x_134); +lean_ctor_set(x_135, 5, x_118); +lean_ctor_set(x_135, 6, x_119); +lean_ctor_set(x_135, 7, x_120); +lean_ctor_set(x_135, 8, x_127); +lean_ctor_set_uint8(x_135, sizeof(void*)*9, x_121); +x_136 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_129); +lean_ctor_set(x_136, 2, x_1); +lean_ctor_set(x_136, 3, x_9); +lean_ctor_set(x_136, 4, x_12); +lean_ctor_set(x_136, 5, x_93); +lean_ctor_set(x_136, 6, x_15); +lean_ctor_set_uint8(x_136, sizeof(void*)*7, x_2); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_94); +return x_137; } 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_inc(x_110); -x_134 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__6___boxed), 2, 1); -lean_closure_set(x_134, 0, x_110); -x_135 = lean_task_map(x_134, x_101, x_96, x_97); -x_136 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_136, 0, x_135); -lean_inc(x_105); -lean_inc(x_136); -x_137 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_137, 0, x_103); -lean_ctor_set(x_137, 1, x_136); -lean_ctor_set(x_137, 2, x_105); -x_138 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_138, 0, x_109); -lean_ctor_set(x_138, 1, x_136); -lean_ctor_set(x_138, 2, x_105); -x_139 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_112, x_137); -x_140 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_113, x_138); -if (lean_is_scalar(x_126)) { - x_141 = lean_alloc_ctor(0, 9, 1); +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_inc(x_114); +x_138 = lean_alloc_closure((void*)(l_Lean_Environment_addConstAsync___lambda__7___boxed), 2, 1); +lean_closure_set(x_138, 0, x_114); +x_139 = lean_task_map(x_138, x_103, x_98, x_99); +x_140 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_140, 0, x_139); +lean_inc(x_140); +x_141 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_141, 0, x_105); +lean_ctor_set(x_141, 1, x_140); +lean_ctor_set(x_141, 2, x_107); +x_142 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_142, 0, x_111); +lean_ctor_set(x_142, 1, x_140); +lean_ctor_set(x_142, 2, x_113); +x_143 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_116, x_141); +x_144 = l___private_Lean_Environment_0__Lean_AsyncConsts_add(x_117, x_142); +if (lean_is_scalar(x_130)) { + x_145 = lean_alloc_ctor(0, 9, 1); } else { - x_141 = x_126; + x_145 = x_130; } -lean_ctor_set(x_141, 0, x_110); -lean_ctor_set(x_141, 1, x_111); -lean_ctor_set(x_141, 2, x_120); -lean_ctor_set(x_141, 3, x_139); -lean_ctor_set(x_141, 4, x_140); -lean_ctor_set(x_141, 5, x_114); -lean_ctor_set(x_141, 6, x_115); -lean_ctor_set(x_141, 7, x_116); -lean_ctor_set(x_141, 8, x_123); -lean_ctor_set_uint8(x_141, sizeof(void*)*9, x_117); -x_142 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_125); -lean_ctor_set(x_142, 2, x_1); -lean_ctor_set(x_142, 3, x_9); -lean_ctor_set(x_142, 4, x_12); -lean_ctor_set(x_142, 5, x_91); -lean_ctor_set(x_142, 6, x_15); -lean_ctor_set_uint8(x_142, sizeof(void*)*7, x_2); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_92); -return x_143; +lean_ctor_set(x_145, 0, x_114); +lean_ctor_set(x_145, 1, x_115); +lean_ctor_set(x_145, 2, x_124); +lean_ctor_set(x_145, 3, x_143); +lean_ctor_set(x_145, 4, x_144); +lean_ctor_set(x_145, 5, x_118); +lean_ctor_set(x_145, 6, x_119); +lean_ctor_set(x_145, 7, x_120); +lean_ctor_set(x_145, 8, x_127); +lean_ctor_set_uint8(x_145, sizeof(void*)*9, x_121); +x_146 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_129); +lean_ctor_set(x_146, 2, x_1); +lean_ctor_set(x_146, 3, x_9); +lean_ctor_set(x_146, 4, x_12); +lean_ctor_set(x_146, 5, x_93); +lean_ctor_set(x_146, 6, x_15); +lean_ctor_set_uint8(x_146, sizeof(void*)*7, x_2); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_94); +return x_147; } } } @@ -12941,7 +12975,7 @@ if (x_6 == 0) { lean_object* x_8; lean_object* x_9; x_8 = lean_box(0); -x_9 = l_Lean_Environment_addConstAsync___lambda__7(x_2, x_3, x_4, x_1, x_5, x_8, x_7); +x_9 = l_Lean_Environment_addConstAsync___lambda__8(x_2, x_3, x_4, x_1, x_5, x_8, x_7); return x_9; } else @@ -12953,7 +12987,7 @@ if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; x_11 = lean_box(0); -x_12 = l_Lean_Environment_addConstAsync___lambda__7(x_2, x_3, x_4, x_1, x_5, x_11, x_7); +x_12 = l_Lean_Environment_addConstAsync___lambda__8(x_2, x_3, x_4, x_1, x_5, x_11, x_7); return x_12; } else @@ -12999,7 +13033,7 @@ lean_object* x_29; lean_object* x_30; lean_free_object(x_10); lean_dec(x_14); x_29 = lean_box(0); -x_30 = l_Lean_Environment_addConstAsync___lambda__7(x_2, x_3, x_4, x_1, x_5, x_29, x_7); +x_30 = l_Lean_Environment_addConstAsync___lambda__8(x_2, x_3, x_4, x_1, x_5, x_29, x_7); return x_30; } } @@ -13043,7 +13077,7 @@ else lean_object* x_47; lean_object* x_48; lean_dec(x_31); x_47 = lean_box(0); -x_48 = l_Lean_Environment_addConstAsync___lambda__7(x_2, x_3, x_4, x_1, x_5, x_47, x_7); +x_48 = l_Lean_Environment_addConstAsync___lambda__8(x_2, x_3, x_4, x_1, x_5, x_47, x_7); return x_48; } } @@ -13093,13 +13127,13 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__5___boxed(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = l_Lean_Environment_addConstAsync___lambda__5(x_1, x_2); +lean_object* x_2; +x_2 = l_Lean_Environment_addConstAsync___lambda__5(x_1); lean_dec(x_1); -return x_3; +return x_2; } } LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__6___boxed(lean_object* x_1, lean_object* x_2) { @@ -13107,12 +13141,21 @@ _start: { lean_object* x_3; x_3 = l_Lean_Environment_addConstAsync___lambda__6(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lambda__7___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Environment_addConstAsync___lambda__7(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___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_EXPORT lean_object* l_Lean_Environment_addConstAsync___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) { _start: { uint8_t x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; @@ -13122,7 +13165,7 @@ x_9 = lean_unbox(x_3); lean_dec(x_3); x_10 = lean_unbox(x_5); lean_dec(x_5); -x_11 = l_Lean_Environment_addConstAsync___lambda__7(x_1, x_8, x_9, x_4, x_10, x_6, x_7); +x_11 = l_Lean_Environment_addConstAsync___lambda__8(x_1, x_8, x_9, x_4, x_10, x_6, x_7); lean_dec(x_6); return x_11; } @@ -13322,71 +13365,135 @@ return x_20; LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_1, 0); -x_8 = lean_ctor_get(x_7, 3); -x_9 = l___private_Lean_Environment_0__Lean_Environment_asyncConsts(x_1); if (lean_obj_tag(x_3) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_2, 4); +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; uint8_t x_15; lean_object* x_16; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 3); lean_inc(x_8); -lean_inc(x_4); -x_11 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_11, 0, x_4); -lean_ctor_set(x_11, 1, x_4); -lean_ctor_set(x_11, 2, x_8); -lean_ctor_set(x_11, 3, x_9); -x_12 = lean_io_promise_resolve(x_11, x_10, x_6); -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); +x_9 = lean_ctor_get(x_1, 4); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 3); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_ctor_get(x_2, 4); +lean_inc(x_11); +x_12 = 1; +x_13 = l_Lean_Environment_setExporting(x_1, x_12); +x_14 = lean_ctor_get(x_2, 2); 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; +lean_dec(x_2); +x_15 = 0; +x_16 = l_Lean_Environment_find_x3f(x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_inc(x_4); +x_17 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_17, 0, x_4); +lean_ctor_set(x_17, 1, x_4); +lean_ctor_set(x_17, 2, x_10); +lean_ctor_set(x_17, 3, x_8); +lean_ctor_set(x_17, 4, x_9); +x_18 = lean_io_promise_resolve(x_17, x_11, x_6); +lean_dec(x_11); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } else { -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_2, 4); -x_18 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_inc(x_18); -x_19 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_19, 0, x_4); -lean_ctor_set(x_19, 1, x_18); -lean_ctor_set(x_19, 2, x_8); -lean_ctor_set(x_19, 3, x_9); -x_20 = lean_io_promise_resolve(x_19, x_17, x_6); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -return x_20; -} -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; uint8_t x_26; +x_23 = lean_ctor_get(x_16, 0); 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_dec(x_16); +x_24 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_24, 0, x_4); lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_ctor_set(x_24, 2, x_10); +lean_ctor_set(x_24, 3, x_8); +lean_ctor_set(x_24, 4, x_9); +x_25 = lean_io_promise_resolve(x_24, x_11, x_6); +lean_dec(x_11); +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 +{ +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; +x_30 = lean_ctor_get(x_1, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_1, 3); +lean_inc(x_31); +x_32 = lean_ctor_get(x_1, 4); +lean_inc(x_32); +lean_dec(x_1); +x_33 = lean_ctor_get(x_30, 3); +lean_inc(x_33); +lean_dec(x_30); +x_34 = lean_ctor_get(x_2, 4); +lean_inc(x_34); +lean_dec(x_2); +x_35 = lean_ctor_get(x_3, 0); +lean_inc(x_35); +x_36 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_36, 0, x_4); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_33); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_32); +x_37 = lean_io_promise_resolve(x_36, x_34, x_6); +lean_dec(x_34); +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); +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; } } } @@ -13430,6 +13537,8 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); x_13 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__2___closed__2; x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); @@ -13465,6 +13574,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; lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); x_12 = lean_expr_dbg_to_string(x_10); lean_dec(x_10); x_13 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__3___closed__1; @@ -13507,7 +13618,9 @@ _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); x_9 = l_IO_Promise_result_x21___rarg(x_8); +lean_dec(x_8); x_10 = lean_task_get_own(x_9); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); @@ -13518,6 +13631,8 @@ 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_dec(x_10); lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); x_14 = l_List_toString___at_Lean_Environment_AddConstAsyncResult_commitConst___spec__1(x_12); x_15 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__4___closed__1; x_16 = lean_string_append(x_15, x_14); @@ -13582,6 +13697,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; 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_dec(x_6); lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); x_14 = lean_unsigned_to_nat(0u); x_15 = l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1336_(x_11, x_14); @@ -13611,7 +13727,6 @@ lean_free_object(x_7); x_28 = lean_box(0); x_29 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__4(x_1, x_2, x_3, x_4, x_6, x_28, x_9); lean_dec(x_6); -lean_dec(x_1); return x_29; } } @@ -13629,6 +13744,7 @@ 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; 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_6); lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); x_34 = lean_unsigned_to_nat(0u); x_35 = l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1336_(x_31, x_34); @@ -13658,7 +13774,6 @@ lean_object* x_49; lean_object* x_50; x_49 = lean_box(0); x_50 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__4(x_1, x_2, x_3, x_4, x_6, x_49, x_30); lean_dec(x_6); -lean_dec(x_1); return x_50; } } @@ -13668,6 +13783,7 @@ else uint8_t x_51; lean_dec(x_6); lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); x_51 = !lean_is_exclusive(x_7); if (x_51 == 0) @@ -13711,54 +13827,53 @@ _start: { if (lean_obj_tag(x_3) == 0) { -lean_object* x_6; uint8_t x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_1, 2); -lean_inc(x_6); -x_7 = 0; -lean_inc(x_6); +uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = 0; lean_inc(x_2); -x_8 = l_Lean_Environment_find_x3f(x_2, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +x_7 = l_Lean_Environment_setExporting(x_2, x_6); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Environment_find_x3f(x_7, x_8, x_6); +if (lean_obj_tag(x_9) == 0) { -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; +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_dec(x_2); lean_dec(x_1); -x_9 = 1; -x_10 = l_Lean_instToStringImport___closed__1; -x_11 = l_Lean_Name_toString(x_6, x_9, x_10); -x_12 = l_Lean_Environment_AddConstAsyncResult_commitConst___closed__1; -x_13 = lean_string_append(x_12, x_11); -lean_dec(x_11); -x_14 = l_Lean_Environment_AddConstAsyncResult_commitConst___closed__2; -x_15 = lean_string_append(x_13, x_14); -x_16 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_16, 0, x_15); -x_17 = lean_alloc_ctor(1, 2, 0); +x_10 = 1; +x_11 = l_Lean_instToStringImport___closed__1; +x_12 = l_Lean_Name_toString(x_8, x_10, x_11); +x_13 = l_Lean_Environment_AddConstAsyncResult_commitConst___closed__1; +x_14 = lean_string_append(x_13, x_12); +lean_dec(x_12); +x_15 = l_Lean_Environment_AddConstAsyncResult_commitConst___closed__2; +x_16 = lean_string_append(x_14, x_15); +x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_5); -return x_17; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_5); +return x_18; } else { -lean_object* x_18; lean_object* x_19; -lean_dec(x_6); -x_18 = lean_ctor_get(x_8, 0); -lean_inc(x_18); +lean_object* x_19; lean_object* x_20; lean_dec(x_8); -x_19 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__5(x_1, x_2, x_4, x_18, x_5); -lean_dec(x_2); -return x_19; +x_19 = lean_ctor_get(x_9, 0); +lean_inc(x_19); +lean_dec(x_9); +x_20 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__5(x_1, x_2, x_4, x_19, x_5); +return x_20; } } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_3, 0); -lean_inc(x_20); +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_3, 0); +lean_inc(x_21); lean_dec(x_3); -x_21 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__5(x_1, x_2, x_4, x_20, x_5); -lean_dec(x_2); -return x_21; +x_22 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__5(x_1, x_2, x_4, x_21, x_5); +return x_22; } } } @@ -13769,8 +13884,6 @@ lean_object* x_7; x_7 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); return x_7; } } @@ -13782,8 +13895,6 @@ x_8 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__2(x_1, x_2, x lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); return x_8; } } @@ -13796,8 +13907,6 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); return x_9; } } @@ -13809,8 +13918,6 @@ x_8 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__4(x_1, x_2, x lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); return x_8; } } @@ -13820,7 +13927,6 @@ _start: lean_object* x_6; x_6 = l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__5(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); -lean_dec(x_2); return x_6; } } @@ -14903,7 +15009,7 @@ x_2 = l_Lean_instInhabitedEnvExtension___closed__2; return x_2; } } -static lean_object* _init_l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1() { +static lean_object* _init_l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -14912,11 +15018,11 @@ x_2 = lean_array_mk(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_3 = lean_st_mk_ref(x_2, x_1); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) @@ -15145,7 +15251,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l___private_Lean_Environment_0__Lean_EnvExtension_setStateImpl___rarg___closed__1; -x_3 = lean_unsigned_to_nat(1222u); +x_3 = lean_unsigned_to_nat(1227u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtension_invalidExtMsg; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -15215,7 +15321,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l___private_Lean_Environment_0__Lean_EnvExtension_modifyStateImpl___rarg___closed__1; -x_3 = lean_unsigned_to_nat(1233u); +x_3 = lean_unsigned_to_nat(1238u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtension_invalidExtMsg; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -15281,7 +15387,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l___private_Lean_Environment_0__Lean_EnvExtension_getStateImpl___rarg___closed__1; -x_3 = lean_unsigned_to_nat(1239u); +x_3 = lean_unsigned_to_nat(1244u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtension_invalidExtMsg; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -15824,7 +15930,7 @@ x_19 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_22 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_23 = lean_unsigned_to_nat(1268u); +x_23 = lean_unsigned_to_nat(1273u); x_24 = lean_unsigned_to_nat(15u); x_25 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_21, x_22, x_23, x_24, x_20); lean_dec(x_20); @@ -16032,7 +16138,7 @@ x_84 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_85 = lean_string_append(x_83, x_84); x_86 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_87 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_88 = lean_unsigned_to_nat(1260u); +x_88 = lean_unsigned_to_nat(1265u); x_89 = lean_unsigned_to_nat(13u); x_90 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_86, x_87, x_88, x_89, x_85); lean_dec(x_85); @@ -16049,7 +16155,7 @@ x_94 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_95 = lean_string_append(x_93, x_94); x_96 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_97 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_98 = lean_unsigned_to_nat(1260u); +x_98 = lean_unsigned_to_nat(1265u); x_99 = lean_unsigned_to_nat(13u); x_100 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_96, x_97, x_98, x_99, x_95); lean_dec(x_95); @@ -16109,7 +16215,7 @@ x_116 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_117 = lean_string_append(x_115, x_116); x_118 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_119 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_120 = lean_unsigned_to_nat(1268u); +x_120 = lean_unsigned_to_nat(1273u); x_121 = lean_unsigned_to_nat(15u); x_122 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_118, x_119, x_120, x_121, x_117); lean_dec(x_117); @@ -16276,7 +16382,7 @@ x_20 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_21 = lean_string_append(x_19, x_20); x_22 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_23 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_24 = lean_unsigned_to_nat(1268u); +x_24 = lean_unsigned_to_nat(1273u); x_25 = lean_unsigned_to_nat(15u); x_26 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_22, x_23, x_24, x_25, x_21); lean_dec(x_21); @@ -16484,7 +16590,7 @@ x_85 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_86 = lean_string_append(x_84, x_85); x_87 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_88 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_89 = lean_unsigned_to_nat(1260u); +x_89 = lean_unsigned_to_nat(1265u); x_90 = lean_unsigned_to_nat(13u); x_91 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_87, x_88, x_89, x_90, x_86); lean_dec(x_86); @@ -16501,7 +16607,7 @@ x_95 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_96 = lean_string_append(x_94, x_95); x_97 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_98 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_99 = lean_unsigned_to_nat(1260u); +x_99 = lean_unsigned_to_nat(1265u); x_100 = lean_unsigned_to_nat(13u); x_101 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_97, x_98, x_99, x_100, x_96); lean_dec(x_96); @@ -16561,7 +16667,7 @@ x_117 = l_Lean_EnvExtension_modifyState___rarg___closed__2; x_118 = lean_string_append(x_116, x_117); x_119 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_120 = l_Lean_EnvExtension_modifyState___rarg___closed__3; -x_121 = lean_unsigned_to_nat(1268u); +x_121 = lean_unsigned_to_nat(1273u); x_122 = lean_unsigned_to_nat(15u); x_123 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_119, x_120, x_121, x_122, x_118); lean_dec(x_118); @@ -16622,7 +16728,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___rarg___closed__1; -x_3 = lean_unsigned_to_nat(1286u); +x_3 = lean_unsigned_to_nat(1291u); x_4 = lean_unsigned_to_nat(17u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___rarg___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -17308,7 +17414,7 @@ lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_6 = lean_ctor_get(x_4, 0); x_7 = lean_box(0); x_8 = 0; -x_9 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_9 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_10 = lean_alloc_ctor(0, 5, 5); lean_ctor_set(x_10, 0, x_7); lean_ctor_set(x_10, 1, x_9); @@ -17360,7 +17466,7 @@ lean_inc(x_22); lean_dec(x_4); x_24 = lean_box(0); x_25 = 0; -x_26 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_26 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_27 = lean_alloc_ctor(0, 5, 5); lean_ctor_set(x_27, 0, x_24); lean_ctor_set(x_27, 1, x_26); @@ -17520,7 +17626,7 @@ LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg( _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____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); @@ -17550,7 +17656,7 @@ LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__2( _start: { lean_object* x_2; -x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_2; } } @@ -17960,11 +18066,11 @@ lean_dec(x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_8371_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_8434_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_3 = lean_st_mk_ref(x_2, x_1); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) @@ -18328,7 +18434,7 @@ LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___la _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_3 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_1); @@ -18955,7 +19061,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l_Lean_readModuleData___closed__3; -x_3 = lean_unsigned_to_nat(1571u); +x_3 = lean_unsigned_to_nat(1576u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_readModuleData___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -18976,7 +19082,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l_Lean_readModuleData___closed__3; -x_3 = lean_unsigned_to_nat(1572u); +x_3 = lean_unsigned_to_nat(1577u); x_4 = lean_unsigned_to_nat(31u); x_5 = l_Lean_readModuleData___closed__5; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19751,7 +19857,7 @@ LEAN_EXPORT lean_object* l_Lean_RBTree_toArray___at_Lean_mkModuleData___spec__3( _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_3 = l_Lean_RBNode_fold___at_Lean_mkModuleData___spec__4(x_2, x_1); return x_3; } @@ -19835,7 +19941,7 @@ if (x_6 == 0) lean_object* x_7; lean_dec(x_2); lean_dec(x_1); -x_7 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_7 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_7; } else @@ -19849,7 +19955,7 @@ if (x_9 == 0) lean_object* x_10; lean_dec(x_2); lean_dec(x_1); -x_10 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_10 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_10; } else @@ -19857,7 +19963,7 @@ else size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_usize_of_nat(x_4); x_12 = lean_usize_of_nat(x_5); -x_13 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_13 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_14 = l_Array_foldlMUnsafe_fold___at_Lean_mkModuleData___spec__6(x_1, x_2, x_3, x_11, x_12, x_13); return x_14; } @@ -19938,7 +20044,7 @@ x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); x_17 = l_Lean_mkModuleData___closed__1; -x_18 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_18 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_19 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_Environment_dbgFormatAsyncState___spec__25___rarg(x_17, x_16, x_18); lean_dec(x_16); x_20 = lean_array_get_size(x_19); @@ -20843,7 +20949,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; x_3 = lean_array_get_size(x_1); -x_4 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_4 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_5 = lean_mk_array(x_3, x_4); x_6 = !lean_is_exclusive(x_2); if (x_6 == 0) @@ -23979,7 +24085,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_Environment_0__Lean_AsyncConsts_add___closed__4; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__8___lambda__1___closed__1; -x_3 = lean_unsigned_to_nat(1781u); +x_3 = lean_unsigned_to_nat(1786u); x_4 = lean_unsigned_to_nat(41u); x_5 = l_Lean_readModuleData___closed__5; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -26460,21 +26566,29 @@ lean_dec(x_1); return x_6; } } -LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_equivInfo(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_subsumesInfo(lean_object* x_1, lean_object* x_2) { _start: { -if (lean_obj_tag(x_1) == 2) +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_ConstantInfo_name(x_1); +x_4 = l_Lean_ConstantInfo_name(x_2); +x_5 = lean_name_eq(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +if (x_5 == 0) { -if (lean_obj_tag(x_2) == 2) +uint8_t x_6; +x_6 = 0; +return x_6; +} +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; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_5, 0); -x_7 = lean_ctor_get(x_4, 0); -x_8 = lean_ctor_get(x_7, 0); -x_9 = lean_name_eq(x_6, x_8); +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = l_Lean_ConstantInfo_type(x_1); +x_8 = l_Lean_ConstantInfo_type(x_2); +x_9 = lean_expr_eqv(x_7, x_8); +lean_dec(x_8); +lean_dec(x_7); if (x_9 == 0) { uint8_t x_10; @@ -26484,9 +26598,11 @@ return x_10; else { lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_5, 2); -x_12 = lean_ctor_get(x_7, 2); -x_13 = lean_expr_eqv(x_11, x_12); +x_11 = l_Lean_ConstantInfo_levelParams(x_1); +x_12 = l_Lean_ConstantInfo_levelParams(x_2); +x_13 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_11, x_12); +lean_dec(x_12); +lean_dec(x_11); if (x_13 == 0) { uint8_t x_14; @@ -26495,31 +26611,37 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_5, 1); -x_16 = lean_ctor_get(x_7, 1); -x_17 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_15, x_16); -if (x_17 == 0) +switch (lean_obj_tag(x_1)) { +case 0: { -uint8_t x_18; -x_18 = 0; -return x_18; +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_1, 0); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*1); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_2, 0); +x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = 1; +return x_19; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_3, 2); -x_20 = lean_ctor_get(x_4, 2); -x_21 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_19, x_20); -return x_21; -} -} +uint8_t x_20; +x_20 = 0; +return x_20; } } else { -uint8_t x_22; -x_22 = 0; +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_2, 0); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*1); return x_22; } } @@ -26530,12 +26652,83 @@ x_23 = 0; return x_23; } } +case 2: +{ +switch (lean_obj_tag(x_2)) { +case 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; uint8_t x_31; +x_24 = lean_ctor_get(x_2, 0); +x_25 = lean_ctor_get(x_24, 0); +x_26 = lean_ctor_get(x_1, 0); +x_27 = lean_ctor_get(x_26, 2); +x_28 = lean_ctor_get(x_25, 0); +x_29 = lean_box(0); +lean_inc(x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_27, x_30); +lean_dec(x_30); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = 0; +return x_32; } -LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_equivInfo___boxed(lean_object* x_1, lean_object* x_2) { +else +{ +uint8_t x_33; +x_33 = lean_ctor_get_uint8(x_24, sizeof(void*)*1); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = 1; +return x_34; +} +else +{ +uint8_t x_35; +x_35 = 0; +return x_35; +} +} +} +case 2: +{ +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_1, 0); +x_37 = lean_ctor_get(x_2, 0); +x_38 = lean_ctor_get(x_36, 2); +x_39 = lean_ctor_get(x_37, 2); +x_40 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_431____spec__1(x_38, x_39); +return x_40; +} +default: +{ +uint8_t x_41; +x_41 = 0; +return x_41; +} +} +} +default: +{ +uint8_t x_42; +x_42 = 0; +return x_42; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_subsumesInfo___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Environment_0__Lean_equivInfo(x_1, x_2); +x_3 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -26635,7 +26828,7 @@ x_5 = lean_nat_dec_lt(x_3, x_4); if (x_5 == 0) { lean_object* x_6; -x_6 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_6 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_6; } else @@ -26647,7 +26840,7 @@ lean_dec(x_7); if (x_8 == 0) { lean_object* x_9; -x_9 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_9 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_9; } else @@ -26655,7 +26848,7 @@ else size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_usize_of_nat(x_3); x_11 = lean_usize_of_nat(x_4); -x_12 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_12 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_13 = l_Array_foldlMUnsafe_fold___at_Lean_finalizeImport___spec__2(x_1, x_2, x_10, x_11, x_12); return x_13; } @@ -27090,84 +27283,347 @@ return x_91; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___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, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_10; -x_10 = lean_usize_dec_lt(x_7, x_6); -if (x_10 == 0) +lean_object* x_11; lean_object* x_12; uint8_t x_18; +x_18 = lean_usize_dec_lt(x_8, x_7); +if (x_18 == 0) { -lean_object* x_11; +lean_object* x_19; +lean_dec(x_3); lean_dec(x_2); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_9); -return x_11; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_10); +return x_19; } else { -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_uget(x_5, x_7); -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) +lean_object* x_20; uint8_t x_21; +x_20 = lean_array_uget(x_6, x_8); +x_21 = !lean_is_exclusive(x_9); +if (x_21 == 0) { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_8, 1); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_9, 1); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get(x_14, 0); -x_18 = lean_ctor_get(x_14, 1); -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_16, 2); -lean_inc(x_21); -x_22 = lean_nat_dec_lt(x_20, x_21); -if (x_22 == 0) +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_24 = lean_ctor_get(x_9, 0); +x_25 = lean_ctor_get(x_22, 0); +x_26 = lean_ctor_get(x_22, 1); +x_27 = lean_ctor_get(x_24, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_24, 2); +lean_inc(x_29); +x_30 = lean_nat_dec_lt(x_28, x_29); +if (x_30 == 0) { -lean_object* x_23; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_12); -lean_dec(x_2); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_8); -lean_ctor_set(x_23, 1, x_9); -return x_23; -} -else -{ -uint8_t x_24; -lean_free_object(x_14); -lean_free_object(x_8); -x_24 = !lean_is_exclusive(x_16); -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; uint8_t x_57; -x_25 = lean_ctor_get(x_16, 2); -lean_dec(x_25); -x_26 = lean_ctor_get(x_16, 1); -lean_dec(x_26); -x_27 = lean_ctor_get(x_16, 0); +lean_object* x_31; +lean_dec(x_29); +lean_dec(x_28); 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_16, 1, x_30); -x_57 = !lean_is_exclusive(x_18); +lean_dec(x_3); +lean_dec(x_2); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_9); +lean_ctor_set(x_31, 1, x_10); +return x_31; +} +else +{ +uint8_t x_32; +lean_free_object(x_22); +lean_free_object(x_9); +x_32 = !lean_is_exclusive(x_24); +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; uint8_t x_146; +x_33 = lean_ctor_get(x_24, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_24, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_24, 0); +lean_dec(x_35); +x_36 = lean_array_fget(x_27, x_28); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_28, x_37); +lean_dec(x_28); +lean_ctor_set(x_24, 1, x_38); +x_146 = !lean_is_exclusive(x_26); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; uint64_t x_150; uint64_t x_151; uint64_t x_152; uint64_t x_153; uint64_t x_154; uint64_t x_155; uint64_t x_156; size_t x_157; size_t x_158; size_t x_159; size_t x_160; size_t x_161; lean_object* x_162; lean_object* x_163; +x_147 = lean_ctor_get(x_26, 0); +x_148 = lean_ctor_get(x_26, 1); +x_149 = lean_array_get_size(x_148); +x_150 = l_Lean_Name_hash___override(x_20); +x_151 = 32; +x_152 = lean_uint64_shift_right(x_150, x_151); +x_153 = lean_uint64_xor(x_150, x_152); +x_154 = 16; +x_155 = lean_uint64_shift_right(x_153, x_154); +x_156 = lean_uint64_xor(x_153, x_155); +x_157 = lean_uint64_to_usize(x_156); +x_158 = lean_usize_of_nat(x_149); +lean_dec(x_149); +x_159 = 1; +x_160 = lean_usize_sub(x_158, x_159); +x_161 = lean_usize_land(x_157, x_160); +x_162 = lean_array_uget(x_148, x_161); +x_163 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_20, x_162); +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; lean_object* x_172; uint8_t x_173; +x_164 = lean_nat_add(x_147, x_37); +lean_dec(x_147); +lean_inc(x_36); +lean_inc(x_20); +x_165 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_165, 0, x_20); +lean_ctor_set(x_165, 1, x_36); +lean_ctor_set(x_165, 2, x_162); +x_166 = lean_array_uset(x_148, x_161, x_165); +x_167 = lean_box(0); +x_168 = lean_unsigned_to_nat(4u); +x_169 = lean_nat_mul(x_164, x_168); +x_170 = lean_unsigned_to_nat(3u); +x_171 = lean_nat_div(x_169, x_170); +lean_dec(x_169); +x_172 = lean_array_get_size(x_166); +x_173 = lean_nat_dec_le(x_171, x_172); +lean_dec(x_172); +lean_dec(x_171); +if (x_173 == 0) +{ +lean_object* x_174; +x_174 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_166); +lean_ctor_set(x_26, 1, x_174); +lean_ctor_set(x_26, 0, x_164); +x_39 = x_167; +x_40 = x_26; +goto block_145; +} +else +{ +lean_ctor_set(x_26, 1, x_166); +lean_ctor_set(x_26, 0, x_164); +x_39 = x_167; +x_40 = x_26; +goto block_145; +} +} +else +{ +uint8_t x_175; +lean_dec(x_162); +x_175 = !lean_is_exclusive(x_163); +if (x_175 == 0) +{ +x_39 = x_163; +x_40 = x_26; +goto block_145; +} +else +{ +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_163, 0); +lean_inc(x_176); +lean_dec(x_163); +x_177 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_177, 0, x_176); +x_39 = x_177; +x_40 = x_26; +goto block_145; +} +} +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; uint64_t x_181; uint64_t x_182; uint64_t x_183; uint64_t x_184; uint64_t x_185; uint64_t x_186; uint64_t x_187; size_t x_188; size_t x_189; size_t x_190; size_t x_191; size_t x_192; lean_object* x_193; lean_object* x_194; +x_178 = lean_ctor_get(x_26, 0); +x_179 = lean_ctor_get(x_26, 1); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_26); +x_180 = lean_array_get_size(x_179); +x_181 = l_Lean_Name_hash___override(x_20); +x_182 = 32; +x_183 = lean_uint64_shift_right(x_181, x_182); +x_184 = lean_uint64_xor(x_181, x_183); +x_185 = 16; +x_186 = lean_uint64_shift_right(x_184, x_185); +x_187 = lean_uint64_xor(x_184, x_186); +x_188 = lean_uint64_to_usize(x_187); +x_189 = lean_usize_of_nat(x_180); +lean_dec(x_180); +x_190 = 1; +x_191 = lean_usize_sub(x_189, x_190); +x_192 = lean_usize_land(x_188, x_191); +x_193 = lean_array_uget(x_179, x_192); +x_194 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_20, x_193); +if (lean_obj_tag(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; uint8_t x_204; +x_195 = lean_nat_add(x_178, x_37); +lean_dec(x_178); +lean_inc(x_36); +lean_inc(x_20); +x_196 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_196, 0, x_20); +lean_ctor_set(x_196, 1, x_36); +lean_ctor_set(x_196, 2, x_193); +x_197 = lean_array_uset(x_179, x_192, x_196); +x_198 = lean_box(0); +x_199 = lean_unsigned_to_nat(4u); +x_200 = lean_nat_mul(x_195, x_199); +x_201 = lean_unsigned_to_nat(3u); +x_202 = lean_nat_div(x_200, x_201); +lean_dec(x_200); +x_203 = lean_array_get_size(x_197); +x_204 = lean_nat_dec_le(x_202, x_203); +lean_dec(x_203); +lean_dec(x_202); +if (x_204 == 0) +{ +lean_object* x_205; lean_object* x_206; +x_205 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_197); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_195); +lean_ctor_set(x_206, 1, x_205); +x_39 = x_198; +x_40 = x_206; +goto block_145; +} +else +{ +lean_object* x_207; +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_195); +lean_ctor_set(x_207, 1, x_197); +x_39 = x_198; +x_40 = x_207; +goto block_145; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_193); +x_208 = lean_ctor_get(x_194, 0); +lean_inc(x_208); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + x_209 = x_194; +} else { + lean_dec_ref(x_194); + x_209 = lean_box(0); +} +if (lean_is_scalar(x_209)) { + x_210 = lean_alloc_ctor(1, 1, 0); +} else { + x_210 = x_209; +} +lean_ctor_set(x_210, 0, x_208); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_178); +lean_ctor_set(x_211, 1, x_179); +x_39 = x_210; +x_40 = x_211; +goto block_145; +} +} +block_145: +{ +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_36); +x_41 = lean_box(0); +lean_inc(x_3); +x_42 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_40, x_41, x_10); +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_11 = x_43; +x_12 = x_44; +goto block_17; +} +else +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_39, 0); +lean_inc(x_45); +lean_dec(x_39); +x_46 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_36, x_45); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_45, x_36); +lean_dec(x_36); +lean_dec(x_45); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +lean_dec(x_40); +lean_dec(x_24); +lean_dec(x_2); +x_48 = l_Lean_throwAlreadyImported___rarg(x_1, x_25, x_3, x_20, x_10); +lean_dec(x_3); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +return x_48; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_48); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_box(0); +lean_inc(x_3); +x_54 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_40, x_53, 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); +lean_dec(x_54); +x_11 = x_55; +x_12 = x_56; +goto block_17; +} +} +else +{ +uint8_t x_57; +lean_dec(x_45); +x_57 = !lean_is_exclusive(x_40); if (x_57 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint64_t x_61; uint64_t x_62; uint64_t x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; size_t x_68; size_t x_69; size_t x_70; size_t x_71; size_t x_72; lean_object* x_73; lean_object* x_74; -x_58 = lean_ctor_get(x_18, 0); -x_59 = lean_ctor_get(x_18, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint64_t x_61; uint64_t x_62; uint64_t x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; size_t x_68; size_t x_69; size_t x_70; size_t x_71; size_t x_72; lean_object* x_73; uint8_t x_74; +x_58 = lean_ctor_get(x_40, 0); +x_59 = lean_ctor_get(x_40, 1); x_60 = lean_array_get_size(x_59); -x_61 = l_Lean_Name_hash___override(x_12); +x_61 = l_Lean_Name_hash___override(x_20); x_62 = 32; x_63 = lean_uint64_shift_right(x_61, x_62); x_64 = lean_uint64_xor(x_61, x_63); @@ -27181,454 +27637,189 @@ x_70 = 1; x_71 = lean_usize_sub(x_69, x_70); x_72 = lean_usize_land(x_68, x_71); x_73 = lean_array_uget(x_59, x_72); -x_74 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_12, x_73); -if (lean_obj_tag(x_74) == 0) +x_74 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__6(x_20, x_73); +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; uint8_t x_84; -x_75 = lean_nat_add(x_58, x_29); +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; +x_75 = lean_nat_add(x_58, x_37); lean_dec(x_58); -lean_inc(x_28); -lean_inc(x_12); +lean_inc(x_20); x_76 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_76, 0, x_12); -lean_ctor_set(x_76, 1, x_28); +lean_ctor_set(x_76, 0, x_20); +lean_ctor_set(x_76, 1, x_36); lean_ctor_set(x_76, 2, x_73); x_77 = lean_array_uset(x_59, x_72, x_76); -x_78 = lean_box(0); -x_79 = lean_unsigned_to_nat(4u); -x_80 = lean_nat_mul(x_75, x_79); -x_81 = lean_unsigned_to_nat(3u); -x_82 = lean_nat_div(x_80, x_81); -lean_dec(x_80); -x_83 = lean_array_get_size(x_77); -x_84 = lean_nat_dec_le(x_82, x_83); -lean_dec(x_83); +x_78 = lean_unsigned_to_nat(4u); +x_79 = lean_nat_mul(x_75, x_78); +x_80 = lean_unsigned_to_nat(3u); +x_81 = lean_nat_div(x_79, x_80); +lean_dec(x_79); +x_82 = lean_array_get_size(x_77); +x_83 = lean_nat_dec_le(x_81, x_82); lean_dec(x_82); -if (x_84 == 0) +lean_dec(x_81); +if (x_83 == 0) { -lean_object* x_85; -x_85 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_77); -lean_ctor_set(x_18, 1, x_85); -lean_ctor_set(x_18, 0, x_75); -x_31 = x_78; -x_32 = x_18; -goto block_56; -} -else -{ -lean_ctor_set(x_18, 1, x_77); -lean_ctor_set(x_18, 0, x_75); -x_31 = x_78; -x_32 = x_18; -goto block_56; -} -} -else -{ -uint8_t x_86; -lean_dec(x_73); -x_86 = !lean_is_exclusive(x_74); -if (x_86 == 0) -{ -x_31 = x_74; -x_32 = x_18; -goto block_56; -} -else -{ -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_74, 0); +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_84 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_77); +lean_ctor_set(x_40, 1, x_84); +lean_ctor_set(x_40, 0, x_75); +x_85 = lean_box(0); +lean_inc(x_3); +x_86 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_40, x_85, x_10); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -lean_dec(x_74); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -x_31 = x_88; -x_32 = x_18; -goto block_56; +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_11 = x_87; +x_12 = x_88; +goto block_17; } +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_ctor_set(x_40, 1, x_77); +lean_ctor_set(x_40, 0, x_75); +x_89 = lean_box(0); +lean_inc(x_3); +x_90 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_40, x_89, x_10); +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_11 = x_91; +x_12 = x_92; +goto block_17; } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint64_t x_92; uint64_t x_93; uint64_t x_94; uint64_t x_95; uint64_t x_96; uint64_t x_97; uint64_t x_98; size_t x_99; size_t x_100; size_t x_101; size_t x_102; size_t x_103; lean_object* x_104; lean_object* x_105; -x_89 = lean_ctor_get(x_18, 0); -x_90 = lean_ctor_get(x_18, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_18); -x_91 = lean_array_get_size(x_90); -x_92 = l_Lean_Name_hash___override(x_12); -x_93 = 32; -x_94 = lean_uint64_shift_right(x_92, x_93); -x_95 = lean_uint64_xor(x_92, x_94); -x_96 = 16; -x_97 = lean_uint64_shift_right(x_95, x_96); -x_98 = lean_uint64_xor(x_95, x_97); -x_99 = lean_uint64_to_usize(x_98); -x_100 = lean_usize_of_nat(x_91); -lean_dec(x_91); -x_101 = 1; -x_102 = lean_usize_sub(x_100, x_101); -x_103 = lean_usize_land(x_99, x_102); -x_104 = lean_array_uget(x_90, x_103); -x_105 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(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; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_106 = lean_nat_add(x_89, x_29); -lean_dec(x_89); -lean_inc(x_28); -lean_inc(x_12); -x_107 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_107, 0, x_12); -lean_ctor_set(x_107, 1, x_28); -lean_ctor_set(x_107, 2, x_104); -x_108 = lean_array_uset(x_90, x_103, x_107); -x_109 = lean_box(0); -x_110 = lean_unsigned_to_nat(4u); -x_111 = lean_nat_mul(x_106, x_110); -x_112 = lean_unsigned_to_nat(3u); -x_113 = lean_nat_div(x_111, x_112); -lean_dec(x_111); -x_114 = lean_array_get_size(x_108); -x_115 = lean_nat_dec_le(x_113, x_114); -lean_dec(x_114); -lean_dec(x_113); -if (x_115 == 0) -{ -lean_object* x_116; lean_object* x_117; -x_116 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_108); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_106); -lean_ctor_set(x_117, 1, x_116); -x_31 = x_109; -x_32 = x_117; -goto block_56; -} -else -{ -lean_object* x_118; -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_106); -lean_ctor_set(x_118, 1, x_108); -x_31 = x_109; -x_32 = x_118; -goto block_56; -} -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_104); -x_119 = lean_ctor_get(x_105, 0); -lean_inc(x_119); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - x_120 = x_105; -} else { - lean_dec_ref(x_105); - x_120 = lean_box(0); -} -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 1, 0); -} else { - x_121 = x_120; -} -lean_ctor_set(x_121, 0, x_119); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_89); -lean_ctor_set(x_122, 1, x_90); -x_31 = x_121; -x_32 = x_122; -goto block_56; -} -} -block_56: -{ -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; -lean_dec(x_28); -x_33 = lean_box(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_inc(x_2); -x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_16, x_17, x_32, x_33, 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); -lean_dec(x_34); -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -lean_dec(x_35); -x_38 = 1; -x_39 = lean_usize_add(x_7, x_38); -x_7 = x_39; -x_8 = x_37; -x_9 = x_36; -goto _start; -} -else -{ -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_31, 0); -lean_inc(x_41); -lean_dec(x_31); -x_42 = l___private_Lean_Environment_0__Lean_equivInfo(x_41, x_28); -lean_dec(x_28); -lean_dec(x_41); -if (x_42 == 0) -{ -lean_object* x_43; uint8_t x_44; -lean_dec(x_32); -lean_dec(x_16); -x_43 = l_Lean_throwAlreadyImported___rarg(x_1, x_17, x_2, x_12, x_9); -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(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_93 = lean_array_uset(x_59, x_72, x_2); +lean_inc(x_20); +x_94 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__10(x_20, x_36, x_73); +x_95 = lean_array_uset(x_93, x_72, x_94); +lean_ctor_set(x_40, 1, x_95); +x_96 = lean_box(0); +lean_inc(x_3); +x_97 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_40, x_96, 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_11 = x_98; +x_12 = x_99; +goto block_17; } } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; size_t x_53; size_t x_54; -x_48 = lean_box(0); -lean_inc(x_2); -x_49 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_16, x_17, x_32, x_48, x_9); -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); -lean_dec(x_50); -x_53 = 1; -x_54 = lean_usize_add(x_7, x_53); -x_7 = x_54; -x_8 = x_52; -x_9 = x_51; -goto _start; -} -} -} -} -else +lean_object* x_100; lean_object* x_101; lean_object* x_102; uint64_t x_103; uint64_t x_104; uint64_t x_105; uint64_t x_106; uint64_t x_107; uint64_t x_108; uint64_t x_109; size_t x_110; size_t x_111; size_t x_112; size_t x_113; size_t x_114; lean_object* x_115; uint8_t x_116; +x_100 = lean_ctor_get(x_40, 0); +x_101 = lean_ctor_get(x_40, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_40); +x_102 = lean_array_get_size(x_101); +x_103 = l_Lean_Name_hash___override(x_20); +x_104 = 32; +x_105 = lean_uint64_shift_right(x_103, x_104); +x_106 = lean_uint64_xor(x_103, x_105); +x_107 = 16; +x_108 = lean_uint64_shift_right(x_106, x_107); +x_109 = lean_uint64_xor(x_106, x_108); +x_110 = lean_uint64_to_usize(x_109); +x_111 = lean_usize_of_nat(x_102); +lean_dec(x_102); +x_112 = 1; +x_113 = lean_usize_sub(x_111, x_112); +x_114 = lean_usize_land(x_110, x_113); +x_115 = lean_array_uget(x_101, x_114); +x_116 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__6(x_20, x_115); +if (x_116 == 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_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint64_t x_157; uint64_t x_158; uint64_t x_159; uint64_t x_160; uint64_t x_161; uint64_t x_162; uint64_t x_163; size_t x_164; size_t x_165; size_t x_166; size_t x_167; size_t x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_16); -x_123 = lean_array_fget(x_19, x_20); -x_124 = lean_unsigned_to_nat(1u); -x_125 = lean_nat_add(x_20, x_124); -lean_dec(x_20); -x_126 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_126, 0, x_19); -lean_ctor_set(x_126, 1, x_125); -lean_ctor_set(x_126, 2, x_21); -x_153 = lean_ctor_get(x_18, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_18, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_155 = x_18; -} else { - lean_dec_ref(x_18); - x_155 = lean_box(0); -} -x_156 = lean_array_get_size(x_154); -x_157 = l_Lean_Name_hash___override(x_12); -x_158 = 32; -x_159 = lean_uint64_shift_right(x_157, x_158); -x_160 = lean_uint64_xor(x_157, x_159); -x_161 = 16; -x_162 = lean_uint64_shift_right(x_160, x_161); -x_163 = lean_uint64_xor(x_160, x_162); -x_164 = lean_uint64_to_usize(x_163); -x_165 = lean_usize_of_nat(x_156); -lean_dec(x_156); -x_166 = 1; -x_167 = lean_usize_sub(x_165, x_166); -x_168 = lean_usize_land(x_164, x_167); -x_169 = lean_array_uget(x_154, x_168); -x_170 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_12, x_169); -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_object* x_179; uint8_t x_180; -x_171 = lean_nat_add(x_153, x_124); -lean_dec(x_153); -lean_inc(x_123); -lean_inc(x_12); -x_172 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_172, 0, x_12); -lean_ctor_set(x_172, 1, x_123); -lean_ctor_set(x_172, 2, x_169); -x_173 = lean_array_uset(x_154, x_168, x_172); -x_174 = lean_box(0); -x_175 = lean_unsigned_to_nat(4u); -x_176 = lean_nat_mul(x_171, x_175); -x_177 = lean_unsigned_to_nat(3u); -x_178 = lean_nat_div(x_176, x_177); -lean_dec(x_176); -x_179 = lean_array_get_size(x_173); -x_180 = lean_nat_dec_le(x_178, x_179); -lean_dec(x_179); -lean_dec(x_178); -if (x_180 == 0) -{ -lean_object* x_181; lean_object* x_182; -x_181 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_173); -if (lean_is_scalar(x_155)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_155; -} -lean_ctor_set(x_182, 0, x_171); -lean_ctor_set(x_182, 1, x_181); -x_127 = x_174; -x_128 = x_182; -goto block_152; -} -else -{ -lean_object* x_183; -if (lean_is_scalar(x_155)) { - x_183 = lean_alloc_ctor(0, 2, 0); -} else { - x_183 = x_155; -} -lean_ctor_set(x_183, 0, x_171); -lean_ctor_set(x_183, 1, x_173); -x_127 = x_174; -x_128 = x_183; -goto block_152; -} -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -lean_dec(x_169); -x_184 = lean_ctor_get(x_170, 0); -lean_inc(x_184); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - x_185 = x_170; -} else { - lean_dec_ref(x_170); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(1, 1, 0); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_184); -if (lean_is_scalar(x_155)) { - x_187 = lean_alloc_ctor(0, 2, 0); -} else { - x_187 = x_155; -} -lean_ctor_set(x_187, 0, x_153); -lean_ctor_set(x_187, 1, x_154); -x_127 = x_186; -x_128 = x_187; -goto block_152; -} -block_152: -{ -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; size_t x_134; size_t x_135; +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; uint8_t x_125; +x_117 = lean_nat_add(x_100, x_37); +lean_dec(x_100); +lean_inc(x_20); +x_118 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_118, 0, x_20); +lean_ctor_set(x_118, 1, x_36); +lean_ctor_set(x_118, 2, x_115); +x_119 = lean_array_uset(x_101, x_114, x_118); +x_120 = lean_unsigned_to_nat(4u); +x_121 = lean_nat_mul(x_117, x_120); +x_122 = lean_unsigned_to_nat(3u); +x_123 = lean_nat_div(x_121, x_122); +lean_dec(x_121); +x_124 = lean_array_get_size(x_119); +x_125 = lean_nat_dec_le(x_123, x_124); +lean_dec(x_124); lean_dec(x_123); -x_129 = lean_box(0); -lean_inc(x_2); -x_130 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_126, x_17, x_128, x_129, x_9); -x_131 = lean_ctor_get(x_130, 0); +if (x_125 == 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; +x_126 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_119); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_117); +lean_ctor_set(x_127, 1, x_126); +x_128 = lean_box(0); +lean_inc(x_3); +x_129 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_127, x_128, x_10); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); lean_inc(x_131); -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); -x_134 = 1; -x_135 = lean_usize_add(x_7, x_134); -x_7 = x_135; -x_8 = x_133; -x_9 = x_132; -goto _start; +lean_dec(x_129); +x_11 = x_130; +x_12 = x_131; +goto block_17; } else { -lean_object* x_137; uint8_t x_138; -x_137 = lean_ctor_get(x_127, 0); -lean_inc(x_137); -lean_dec(x_127); -x_138 = l___private_Lean_Environment_0__Lean_equivInfo(x_137, x_123); -lean_dec(x_123); -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_dec(x_128); -lean_dec(x_126); -x_139 = l_Lean_throwAlreadyImported___rarg(x_1, x_17, x_2, x_12, x_9); -lean_dec(x_2); -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); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_117); +lean_ctor_set(x_132, 1, x_119); +x_133 = lean_box(0); +lean_inc(x_3); +x_134 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_132, x_133, x_10); +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_11 = x_135; +x_12 = x_136; +goto block_17; } -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_object* x_146; lean_object* x_147; lean_object* x_148; size_t x_149; size_t x_150; -x_144 = lean_box(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_inc(x_2); -x_145 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_126, x_17, x_128, x_144, x_9); -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); -lean_inc(x_148); -lean_dec(x_146); -x_149 = 1; -x_150 = lean_usize_add(x_7, x_149); -x_7 = x_150; -x_8 = x_148; -x_9 = x_147; -goto _start; +x_137 = lean_array_uset(x_101, x_114, x_2); +lean_inc(x_20); +x_138 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__10(x_20, x_36, x_115); +x_139 = lean_array_uset(x_137, x_114, x_138); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_100); +lean_ctor_set(x_140, 1, x_139); +x_141 = lean_box(0); +lean_inc(x_3); +x_142 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_24, x_25, x_140, x_141, x_10); +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_11 = x_143; +x_12 = x_144; +goto block_17; } } } @@ -27637,533 +27828,1117 @@ goto _start; } 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; uint8_t x_194; -x_188 = lean_ctor_get(x_8, 0); -x_189 = lean_ctor_get(x_14, 0); -x_190 = lean_ctor_get(x_14, 1); -lean_inc(x_190); -lean_inc(x_189); -lean_dec(x_14); -x_191 = lean_ctor_get(x_188, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_188, 1); -lean_inc(x_192); -x_193 = lean_ctor_get(x_188, 2); -lean_inc(x_193); -x_194 = lean_nat_dec_lt(x_192, x_193); -if (x_194 == 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_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint64_t x_285; uint64_t x_286; uint64_t x_287; uint64_t x_288; uint64_t x_289; uint64_t x_290; uint64_t x_291; size_t x_292; size_t x_293; size_t x_294; size_t x_295; size_t x_296; lean_object* x_297; lean_object* x_298; +lean_dec(x_24); +x_212 = lean_array_fget(x_27, x_28); +x_213 = lean_unsigned_to_nat(1u); +x_214 = lean_nat_add(x_28, x_213); +lean_dec(x_28); +x_215 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_215, 0, x_27); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_29); +x_281 = lean_ctor_get(x_26, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_26, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_283 = x_26; +} else { + lean_dec_ref(x_26); + x_283 = lean_box(0); +} +x_284 = lean_array_get_size(x_282); +x_285 = l_Lean_Name_hash___override(x_20); +x_286 = 32; +x_287 = lean_uint64_shift_right(x_285, x_286); +x_288 = lean_uint64_xor(x_285, x_287); +x_289 = 16; +x_290 = lean_uint64_shift_right(x_288, x_289); +x_291 = lean_uint64_xor(x_288, x_290); +x_292 = lean_uint64_to_usize(x_291); +x_293 = lean_usize_of_nat(x_284); +lean_dec(x_284); +x_294 = 1; +x_295 = lean_usize_sub(x_293, x_294); +x_296 = lean_usize_land(x_292, x_295); +x_297 = lean_array_uget(x_282, x_296); +x_298 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_20, x_297); +if (lean_obj_tag(x_298) == 0) { -lean_object* x_195; lean_object* x_196; -lean_dec(x_193); -lean_dec(x_192); -lean_dec(x_191); -lean_dec(x_12); +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; uint8_t x_308; +x_299 = lean_nat_add(x_281, x_213); +lean_dec(x_281); +lean_inc(x_212); +lean_inc(x_20); +x_300 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_300, 0, x_20); +lean_ctor_set(x_300, 1, x_212); +lean_ctor_set(x_300, 2, x_297); +x_301 = lean_array_uset(x_282, x_296, x_300); +x_302 = lean_box(0); +x_303 = lean_unsigned_to_nat(4u); +x_304 = lean_nat_mul(x_299, x_303); +x_305 = lean_unsigned_to_nat(3u); +x_306 = lean_nat_div(x_304, x_305); +lean_dec(x_304); +x_307 = lean_array_get_size(x_301); +x_308 = lean_nat_dec_le(x_306, x_307); +lean_dec(x_307); +lean_dec(x_306); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; +x_309 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_301); +if (lean_is_scalar(x_283)) { + x_310 = lean_alloc_ctor(0, 2, 0); +} else { + x_310 = x_283; +} +lean_ctor_set(x_310, 0, x_299); +lean_ctor_set(x_310, 1, x_309); +x_216 = x_302; +x_217 = x_310; +goto block_280; +} +else +{ +lean_object* x_311; +if (lean_is_scalar(x_283)) { + x_311 = lean_alloc_ctor(0, 2, 0); +} else { + x_311 = x_283; +} +lean_ctor_set(x_311, 0, x_299); +lean_ctor_set(x_311, 1, x_301); +x_216 = x_302; +x_217 = x_311; +goto block_280; +} +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +lean_dec(x_297); +x_312 = lean_ctor_get(x_298, 0); +lean_inc(x_312); +if (lean_is_exclusive(x_298)) { + lean_ctor_release(x_298, 0); + x_313 = x_298; +} else { + lean_dec_ref(x_298); + x_313 = lean_box(0); +} +if (lean_is_scalar(x_313)) { + x_314 = lean_alloc_ctor(1, 1, 0); +} else { + x_314 = x_313; +} +lean_ctor_set(x_314, 0, x_312); +if (lean_is_scalar(x_283)) { + x_315 = lean_alloc_ctor(0, 2, 0); +} else { + x_315 = x_283; +} +lean_ctor_set(x_315, 0, x_281); +lean_ctor_set(x_315, 1, x_282); +x_216 = x_314; +x_217 = x_315; +goto block_280; +} +block_280: +{ +if (lean_obj_tag(x_216) == 0) +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_212); +x_218 = lean_box(0); +lean_inc(x_3); +x_219 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_215, x_25, x_217, x_218, x_10); +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_11 = x_220; +x_12 = x_221; +goto block_17; +} +else +{ +lean_object* x_222; uint8_t x_223; +x_222 = lean_ctor_get(x_216, 0); +lean_inc(x_222); +lean_dec(x_216); +x_223 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_212, x_222); +if (x_223 == 0) +{ +uint8_t x_224; +x_224 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_222, x_212); +lean_dec(x_212); +lean_dec(x_222); +if (x_224 == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_217); +lean_dec(x_215); lean_dec(x_2); -x_195 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_195, 0, x_189); -lean_ctor_set(x_195, 1, x_190); -lean_ctor_set(x_8, 1, x_195); -x_196 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_196, 0, x_8); -lean_ctor_set(x_196, 1, x_9); -return x_196; +x_225 = l_Lean_throwAlreadyImported___rarg(x_1, x_25, x_3, x_20, x_10); +lean_dec(x_3); +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; +} else { + lean_dec_ref(x_225); + x_228 = lean_box(0); +} +if (lean_is_scalar(x_228)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_228; +} +lean_ctor_set(x_229, 0, x_226); +lean_ctor_set(x_229, 1, x_227); +return x_229; } 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_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint64_t x_232; uint64_t x_233; uint64_t x_234; uint64_t x_235; uint64_t x_236; uint64_t x_237; uint64_t x_238; size_t x_239; size_t x_240; size_t x_241; size_t x_242; size_t x_243; lean_object* x_244; lean_object* x_245; -lean_free_object(x_8); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - lean_ctor_release(x_188, 2); - x_197 = x_188; -} else { - lean_dec_ref(x_188); - x_197 = lean_box(0); -} -x_198 = lean_array_fget(x_191, x_192); -x_199 = lean_unsigned_to_nat(1u); -x_200 = lean_nat_add(x_192, x_199); -lean_dec(x_192); -if (lean_is_scalar(x_197)) { - x_201 = lean_alloc_ctor(0, 3, 0); -} else { - x_201 = x_197; -} -lean_ctor_set(x_201, 0, x_191); -lean_ctor_set(x_201, 1, x_200); -lean_ctor_set(x_201, 2, x_193); -x_228 = lean_ctor_get(x_190, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_190, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_230 = x_190; -} else { - lean_dec_ref(x_190); - x_230 = lean_box(0); -} -x_231 = lean_array_get_size(x_229); -x_232 = l_Lean_Name_hash___override(x_12); -x_233 = 32; -x_234 = lean_uint64_shift_right(x_232, x_233); -x_235 = lean_uint64_xor(x_232, x_234); -x_236 = 16; -x_237 = lean_uint64_shift_right(x_235, x_236); -x_238 = lean_uint64_xor(x_235, x_237); -x_239 = lean_uint64_to_usize(x_238); -x_240 = lean_usize_of_nat(x_231); +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_230 = lean_box(0); +lean_inc(x_3); +x_231 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_215, x_25, x_217, x_230, x_10); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_231, 1); +lean_inc(x_233); lean_dec(x_231); -x_241 = 1; -x_242 = lean_usize_sub(x_240, x_241); -x_243 = lean_usize_land(x_239, x_242); -x_244 = lean_array_uget(x_229, x_243); -x_245 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_12, x_244); -if (lean_obj_tag(x_245) == 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; uint8_t x_255; -x_246 = lean_nat_add(x_228, x_199); -lean_dec(x_228); -lean_inc(x_198); -lean_inc(x_12); -x_247 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_247, 0, x_12); -lean_ctor_set(x_247, 1, x_198); -lean_ctor_set(x_247, 2, x_244); -x_248 = lean_array_uset(x_229, x_243, x_247); -x_249 = lean_box(0); -x_250 = lean_unsigned_to_nat(4u); -x_251 = lean_nat_mul(x_246, x_250); -x_252 = lean_unsigned_to_nat(3u); -x_253 = lean_nat_div(x_251, x_252); -lean_dec(x_251); -x_254 = lean_array_get_size(x_248); -x_255 = lean_nat_dec_le(x_253, x_254); -lean_dec(x_254); -lean_dec(x_253); -if (x_255 == 0) -{ -lean_object* x_256; lean_object* x_257; -x_256 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_248); -if (lean_is_scalar(x_230)) { - x_257 = lean_alloc_ctor(0, 2, 0); -} else { - x_257 = x_230; -} -lean_ctor_set(x_257, 0, x_246); -lean_ctor_set(x_257, 1, x_256); -x_202 = x_249; -x_203 = x_257; -goto block_227; -} -else -{ -lean_object* x_258; -if (lean_is_scalar(x_230)) { - x_258 = lean_alloc_ctor(0, 2, 0); -} else { - x_258 = x_230; -} -lean_ctor_set(x_258, 0, x_246); -lean_ctor_set(x_258, 1, x_248); -x_202 = x_249; -x_203 = x_258; -goto block_227; +x_11 = x_232; +x_12 = x_233; +goto block_17; } } else { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_244); -x_259 = lean_ctor_get(x_245, 0); -lean_inc(x_259); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - x_260 = x_245; +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; uint64_t x_238; uint64_t x_239; uint64_t x_240; uint64_t x_241; uint64_t x_242; uint64_t x_243; uint64_t x_244; size_t x_245; size_t x_246; size_t x_247; size_t x_248; size_t x_249; lean_object* x_250; uint8_t x_251; +lean_dec(x_222); +x_234 = lean_ctor_get(x_217, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_217, 1); +lean_inc(x_235); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_236 = x_217; } else { - lean_dec_ref(x_245); - x_260 = lean_box(0); + lean_dec_ref(x_217); + x_236 = lean_box(0); } -if (lean_is_scalar(x_260)) { - x_261 = lean_alloc_ctor(1, 1, 0); -} else { - x_261 = x_260; -} -lean_ctor_set(x_261, 0, x_259); -if (lean_is_scalar(x_230)) { +x_237 = lean_array_get_size(x_235); +x_238 = l_Lean_Name_hash___override(x_20); +x_239 = 32; +x_240 = lean_uint64_shift_right(x_238, x_239); +x_241 = lean_uint64_xor(x_238, x_240); +x_242 = 16; +x_243 = lean_uint64_shift_right(x_241, x_242); +x_244 = lean_uint64_xor(x_241, x_243); +x_245 = lean_uint64_to_usize(x_244); +x_246 = lean_usize_of_nat(x_237); +lean_dec(x_237); +x_247 = 1; +x_248 = lean_usize_sub(x_246, x_247); +x_249 = lean_usize_land(x_245, x_248); +x_250 = lean_array_uget(x_235, x_249); +x_251 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__6(x_20, x_250); +if (x_251 == 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; uint8_t x_260; +x_252 = lean_nat_add(x_234, x_213); +lean_dec(x_234); +lean_inc(x_20); +x_253 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_253, 0, x_20); +lean_ctor_set(x_253, 1, x_212); +lean_ctor_set(x_253, 2, x_250); +x_254 = lean_array_uset(x_235, x_249, x_253); +x_255 = lean_unsigned_to_nat(4u); +x_256 = lean_nat_mul(x_252, x_255); +x_257 = lean_unsigned_to_nat(3u); +x_258 = lean_nat_div(x_256, x_257); +lean_dec(x_256); +x_259 = lean_array_get_size(x_254); +x_260 = lean_nat_dec_le(x_258, x_259); +lean_dec(x_259); +lean_dec(x_258); +if (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; +x_261 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_254); +if (lean_is_scalar(x_236)) { x_262 = lean_alloc_ctor(0, 2, 0); } else { - x_262 = x_230; + x_262 = x_236; } -lean_ctor_set(x_262, 0, x_228); -lean_ctor_set(x_262, 1, x_229); -x_202 = x_261; -x_203 = x_262; -goto block_227; -} -block_227: -{ -if (lean_obj_tag(x_202) == 0) -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; size_t x_209; size_t x_210; -lean_dec(x_198); -x_204 = lean_box(0); -lean_inc(x_2); -x_205 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_201, x_189, x_203, x_204, x_9); -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); -x_208 = lean_ctor_get(x_206, 0); -lean_inc(x_208); -lean_dec(x_206); -x_209 = 1; -x_210 = lean_usize_add(x_7, x_209); -x_7 = x_210; -x_8 = x_208; -x_9 = x_207; -goto _start; -} -else -{ -lean_object* x_212; uint8_t x_213; -x_212 = lean_ctor_get(x_202, 0); -lean_inc(x_212); -lean_dec(x_202); -x_213 = l___private_Lean_Environment_0__Lean_equivInfo(x_212, x_198); -lean_dec(x_198); -lean_dec(x_212); -if (x_213 == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -lean_dec(x_203); -lean_dec(x_201); -x_214 = l_Lean_throwAlreadyImported___rarg(x_1, x_189, x_2, x_12, x_9); -lean_dec(x_2); -x_215 = lean_ctor_get(x_214, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); -lean_inc(x_216); -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_214); - x_217 = lean_box(0); -} -if (lean_is_scalar(x_217)) { - x_218 = lean_alloc_ctor(1, 2, 0); -} else { - x_218 = x_217; -} -lean_ctor_set(x_218, 0, x_215); -lean_ctor_set(x_218, 1, x_216); -return x_218; -} -else -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; size_t x_224; size_t x_225; -x_219 = lean_box(0); -lean_inc(x_2); -x_220 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_201, x_189, x_203, x_219, x_9); -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 = lean_ctor_get(x_221, 0); -lean_inc(x_223); -lean_dec(x_221); -x_224 = 1; -x_225 = lean_usize_add(x_7, x_224); -x_7 = x_225; -x_8 = x_223; -x_9 = x_222; -goto _start; -} -} -} -} -} -} -else -{ -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; -x_263 = lean_ctor_get(x_8, 1); -x_264 = lean_ctor_get(x_8, 0); -lean_inc(x_263); -lean_inc(x_264); -lean_dec(x_8); -x_265 = lean_ctor_get(x_263, 0); +lean_ctor_set(x_262, 0, x_252); +lean_ctor_set(x_262, 1, x_261); +x_263 = lean_box(0); +lean_inc(x_3); +x_264 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_215, x_25, x_262, x_263, x_10); +x_265 = lean_ctor_get(x_264, 0); lean_inc(x_265); -x_266 = lean_ctor_get(x_263, 1); +x_266 = lean_ctor_get(x_264, 1); lean_inc(x_266); -if (lean_is_exclusive(x_263)) { - lean_ctor_release(x_263, 0); - lean_ctor_release(x_263, 1); - x_267 = x_263; -} else { - lean_dec_ref(x_263); - x_267 = lean_box(0); +lean_dec(x_264); +x_11 = x_265; +x_12 = x_266; +goto block_17; } -x_268 = lean_ctor_get(x_264, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_264, 1); -lean_inc(x_269); -x_270 = lean_ctor_get(x_264, 2); +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +if (lean_is_scalar(x_236)) { + x_267 = lean_alloc_ctor(0, 2, 0); +} else { + x_267 = x_236; +} +lean_ctor_set(x_267, 0, x_252); +lean_ctor_set(x_267, 1, x_254); +x_268 = lean_box(0); +lean_inc(x_3); +x_269 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_215, x_25, x_267, x_268, x_10); +x_270 = lean_ctor_get(x_269, 0); lean_inc(x_270); -x_271 = lean_nat_dec_lt(x_269, x_270); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; -lean_dec(x_270); +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); lean_dec(x_269); -lean_dec(x_268); -lean_dec(x_12); -lean_dec(x_2); -if (lean_is_scalar(x_267)) { - x_272 = lean_alloc_ctor(0, 2, 0); -} else { - x_272 = x_267; +x_11 = x_270; +x_12 = x_271; +goto block_17; } -lean_ctor_set(x_272, 0, x_265); -lean_ctor_set(x_272, 1, x_266); -x_273 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_273, 0, x_264); -lean_ctor_set(x_273, 1, x_272); -x_274 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_274, 0, x_273); -lean_ctor_set(x_274, 1, x_9); -return x_274; } 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_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; uint64_t x_310; uint64_t x_311; uint64_t x_312; uint64_t x_313; uint64_t x_314; uint64_t x_315; uint64_t x_316; size_t x_317; size_t x_318; size_t x_319; size_t x_320; size_t x_321; lean_object* x_322; lean_object* x_323; -lean_dec(x_267); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - lean_ctor_release(x_264, 2); - x_275 = x_264; +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_inc(x_2); +x_272 = lean_array_uset(x_235, x_249, x_2); +lean_inc(x_20); +x_273 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__10(x_20, x_212, x_250); +x_274 = lean_array_uset(x_272, x_249, x_273); +if (lean_is_scalar(x_236)) { + x_275 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_264); - x_275 = lean_box(0); + x_275 = x_236; } -x_276 = lean_array_fget(x_268, x_269); -x_277 = lean_unsigned_to_nat(1u); -x_278 = lean_nat_add(x_269, x_277); -lean_dec(x_269); -if (lean_is_scalar(x_275)) { - x_279 = lean_alloc_ctor(0, 3, 0); -} else { - x_279 = x_275; +lean_ctor_set(x_275, 0, x_234); +lean_ctor_set(x_275, 1, x_274); +x_276 = lean_box(0); +lean_inc(x_3); +x_277 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_215, x_25, x_275, x_276, x_10); +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +lean_dec(x_277); +x_11 = x_278; +x_12 = x_279; +goto block_17; } -lean_ctor_set(x_279, 0, x_268); -lean_ctor_set(x_279, 1, x_278); -lean_ctor_set(x_279, 2, x_270); -x_306 = lean_ctor_get(x_266, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_266, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_308 = x_266; -} else { - lean_dec_ref(x_266); - x_308 = lean_box(0); } -x_309 = lean_array_get_size(x_307); -x_310 = l_Lean_Name_hash___override(x_12); -x_311 = 32; -x_312 = lean_uint64_shift_right(x_310, x_311); -x_313 = lean_uint64_xor(x_310, x_312); -x_314 = 16; -x_315 = lean_uint64_shift_right(x_313, x_314); -x_316 = lean_uint64_xor(x_313, x_315); -x_317 = lean_uint64_to_usize(x_316); -x_318 = lean_usize_of_nat(x_309); -lean_dec(x_309); -x_319 = 1; -x_320 = lean_usize_sub(x_318, x_319); -x_321 = lean_usize_land(x_317, x_320); -x_322 = lean_array_uget(x_307, x_321); -x_323 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_12, x_322); -if (lean_obj_tag(x_323) == 0) +} +} +} +} +} +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; uint8_t x_333; -x_324 = lean_nat_add(x_306, x_277); -lean_dec(x_306); -lean_inc(x_276); -lean_inc(x_12); -x_325 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_325, 0, x_12); -lean_ctor_set(x_325, 1, x_276); -lean_ctor_set(x_325, 2, x_322); -x_326 = lean_array_uset(x_307, x_321, x_325); -x_327 = lean_box(0); -x_328 = lean_unsigned_to_nat(4u); -x_329 = lean_nat_mul(x_324, x_328); -x_330 = lean_unsigned_to_nat(3u); -x_331 = lean_nat_div(x_329, x_330); -lean_dec(x_329); -x_332 = lean_array_get_size(x_326); -x_333 = lean_nat_dec_le(x_331, x_332); -lean_dec(x_332); +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; +x_316 = lean_ctor_get(x_9, 0); +x_317 = lean_ctor_get(x_22, 0); +x_318 = lean_ctor_get(x_22, 1); +lean_inc(x_318); +lean_inc(x_317); +lean_dec(x_22); +x_319 = lean_ctor_get(x_316, 0); +lean_inc(x_319); +x_320 = lean_ctor_get(x_316, 1); +lean_inc(x_320); +x_321 = lean_ctor_get(x_316, 2); +lean_inc(x_321); +x_322 = lean_nat_dec_lt(x_320, x_321); +if (x_322 == 0) +{ +lean_object* x_323; lean_object* x_324; +lean_dec(x_321); +lean_dec(x_320); +lean_dec(x_319); +lean_dec(x_20); +lean_dec(x_3); +lean_dec(x_2); +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_317); +lean_ctor_set(x_323, 1, x_318); +lean_ctor_set(x_9, 1, x_323); +x_324 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_324, 0, x_9); +lean_ctor_set(x_324, 1, x_10); +return x_324; +} +else +{ +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_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; uint64_t x_399; uint64_t x_400; uint64_t x_401; uint64_t x_402; uint64_t x_403; uint64_t x_404; uint64_t x_405; size_t x_406; size_t x_407; size_t x_408; size_t x_409; size_t x_410; lean_object* x_411; lean_object* x_412; +lean_free_object(x_9); +if (lean_is_exclusive(x_316)) { + lean_ctor_release(x_316, 0); + lean_ctor_release(x_316, 1); + lean_ctor_release(x_316, 2); + x_325 = x_316; +} else { + lean_dec_ref(x_316); + x_325 = lean_box(0); +} +x_326 = lean_array_fget(x_319, x_320); +x_327 = lean_unsigned_to_nat(1u); +x_328 = lean_nat_add(x_320, x_327); +lean_dec(x_320); +if (lean_is_scalar(x_325)) { + x_329 = lean_alloc_ctor(0, 3, 0); +} else { + x_329 = x_325; +} +lean_ctor_set(x_329, 0, x_319); +lean_ctor_set(x_329, 1, x_328); +lean_ctor_set(x_329, 2, x_321); +x_395 = lean_ctor_get(x_318, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_318, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_318)) { + lean_ctor_release(x_318, 0); + lean_ctor_release(x_318, 1); + x_397 = x_318; +} else { + lean_dec_ref(x_318); + x_397 = lean_box(0); +} +x_398 = lean_array_get_size(x_396); +x_399 = l_Lean_Name_hash___override(x_20); +x_400 = 32; +x_401 = lean_uint64_shift_right(x_399, x_400); +x_402 = lean_uint64_xor(x_399, x_401); +x_403 = 16; +x_404 = lean_uint64_shift_right(x_402, x_403); +x_405 = lean_uint64_xor(x_402, x_404); +x_406 = lean_uint64_to_usize(x_405); +x_407 = lean_usize_of_nat(x_398); +lean_dec(x_398); +x_408 = 1; +x_409 = lean_usize_sub(x_407, x_408); +x_410 = lean_usize_land(x_406, x_409); +x_411 = lean_array_uget(x_396, x_410); +x_412 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_20, x_411); +if (lean_obj_tag(x_412) == 0) +{ +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; uint8_t x_422; +x_413 = lean_nat_add(x_395, x_327); +lean_dec(x_395); +lean_inc(x_326); +lean_inc(x_20); +x_414 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_414, 0, x_20); +lean_ctor_set(x_414, 1, x_326); +lean_ctor_set(x_414, 2, x_411); +x_415 = lean_array_uset(x_396, x_410, x_414); +x_416 = lean_box(0); +x_417 = lean_unsigned_to_nat(4u); +x_418 = lean_nat_mul(x_413, x_417); +x_419 = lean_unsigned_to_nat(3u); +x_420 = lean_nat_div(x_418, x_419); +lean_dec(x_418); +x_421 = lean_array_get_size(x_415); +x_422 = lean_nat_dec_le(x_420, x_421); +lean_dec(x_421); +lean_dec(x_420); +if (x_422 == 0) +{ +lean_object* x_423; lean_object* x_424; +x_423 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_415); +if (lean_is_scalar(x_397)) { + x_424 = lean_alloc_ctor(0, 2, 0); +} else { + x_424 = x_397; +} +lean_ctor_set(x_424, 0, x_413); +lean_ctor_set(x_424, 1, x_423); +x_330 = x_416; +x_331 = x_424; +goto block_394; +} +else +{ +lean_object* x_425; +if (lean_is_scalar(x_397)) { + x_425 = lean_alloc_ctor(0, 2, 0); +} else { + x_425 = x_397; +} +lean_ctor_set(x_425, 0, x_413); +lean_ctor_set(x_425, 1, x_415); +x_330 = x_416; +x_331 = x_425; +goto block_394; +} +} +else +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; +lean_dec(x_411); +x_426 = lean_ctor_get(x_412, 0); +lean_inc(x_426); +if (lean_is_exclusive(x_412)) { + lean_ctor_release(x_412, 0); + x_427 = x_412; +} else { + lean_dec_ref(x_412); + x_427 = lean_box(0); +} +if (lean_is_scalar(x_427)) { + x_428 = lean_alloc_ctor(1, 1, 0); +} else { + x_428 = x_427; +} +lean_ctor_set(x_428, 0, x_426); +if (lean_is_scalar(x_397)) { + x_429 = lean_alloc_ctor(0, 2, 0); +} else { + x_429 = x_397; +} +lean_ctor_set(x_429, 0, x_395); +lean_ctor_set(x_429, 1, x_396); +x_330 = x_428; +x_331 = x_429; +goto block_394; +} +block_394: +{ +if (lean_obj_tag(x_330) == 0) +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +lean_dec(x_326); +x_332 = lean_box(0); +lean_inc(x_3); +x_333 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_329, x_317, x_331, x_332, x_10); +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); +x_11 = x_334; +x_12 = x_335; +goto block_17; +} +else +{ +lean_object* x_336; uint8_t x_337; +x_336 = lean_ctor_get(x_330, 0); +lean_inc(x_336); +lean_dec(x_330); +x_337 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_326, x_336); +if (x_337 == 0) +{ +uint8_t x_338; +x_338 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_336, x_326); +lean_dec(x_326); +lean_dec(x_336); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_dec(x_331); -if (x_333 == 0) -{ -lean_object* x_334; lean_object* x_335; -x_334 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_326); -if (lean_is_scalar(x_308)) { - x_335 = lean_alloc_ctor(0, 2, 0); -} else { - x_335 = x_308; -} -lean_ctor_set(x_335, 0, x_324); -lean_ctor_set(x_335, 1, x_334); -x_280 = x_327; -x_281 = x_335; -goto block_305; -} -else -{ -lean_object* x_336; -if (lean_is_scalar(x_308)) { - x_336 = lean_alloc_ctor(0, 2, 0); -} else { - x_336 = x_308; -} -lean_ctor_set(x_336, 0, x_324); -lean_ctor_set(x_336, 1, x_326); -x_280 = x_327; -x_281 = x_336; -goto block_305; -} -} -else -{ -lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -lean_dec(x_322); -x_337 = lean_ctor_get(x_323, 0); -lean_inc(x_337); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - x_338 = x_323; -} else { - lean_dec_ref(x_323); - x_338 = lean_box(0); -} -if (lean_is_scalar(x_338)) { - x_339 = lean_alloc_ctor(1, 1, 0); -} else { - x_339 = x_338; -} -lean_ctor_set(x_339, 0, x_337); -if (lean_is_scalar(x_308)) { - x_340 = lean_alloc_ctor(0, 2, 0); -} else { - x_340 = x_308; -} -lean_ctor_set(x_340, 0, x_306); -lean_ctor_set(x_340, 1, x_307); -x_280 = x_339; -x_281 = x_340; -goto block_305; -} -block_305: -{ -if (lean_obj_tag(x_280) == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; size_t x_287; size_t x_288; -lean_dec(x_276); -x_282 = lean_box(0); -lean_inc(x_2); -x_283 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_279, x_265, x_281, x_282, x_9); -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); -x_286 = lean_ctor_get(x_284, 0); -lean_inc(x_286); -lean_dec(x_284); -x_287 = 1; -x_288 = lean_usize_add(x_7, x_287); -x_7 = x_288; -x_8 = x_286; -x_9 = x_285; -goto _start; -} -else -{ -lean_object* x_290; uint8_t x_291; -x_290 = lean_ctor_get(x_280, 0); -lean_inc(x_290); -lean_dec(x_280); -x_291 = l___private_Lean_Environment_0__Lean_equivInfo(x_290, x_276); -lean_dec(x_276); -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_dec(x_281); -lean_dec(x_279); -x_292 = l_Lean_throwAlreadyImported___rarg(x_1, x_265, x_2, x_12, x_9); +lean_dec(x_329); lean_dec(x_2); -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; +x_339 = l_Lean_throwAlreadyImported___rarg(x_1, x_317, x_3, x_20, x_10); +lean_dec(x_3); +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_292); - x_295 = lean_box(0); + lean_dec_ref(x_339); + x_342 = lean_box(0); } -if (lean_is_scalar(x_295)) { - x_296 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_342)) { + x_343 = lean_alloc_ctor(1, 2, 0); } else { - x_296 = x_295; + x_343 = x_342; } -lean_ctor_set(x_296, 0, x_293); -lean_ctor_set(x_296, 1, x_294); -return x_296; +lean_ctor_set(x_343, 0, x_340); +lean_ctor_set(x_343, 1, x_341); +return x_343; } else { -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; size_t x_302; size_t x_303; -x_297 = lean_box(0); +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_344 = lean_box(0); +lean_inc(x_3); +x_345 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_329, x_317, x_331, x_344, x_10); +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_11 = x_346; +x_12 = x_347; +goto block_17; +} +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint64_t x_352; uint64_t x_353; uint64_t x_354; uint64_t x_355; uint64_t x_356; uint64_t x_357; uint64_t x_358; size_t x_359; size_t x_360; size_t x_361; size_t x_362; size_t x_363; lean_object* x_364; uint8_t x_365; +lean_dec(x_336); +x_348 = lean_ctor_get(x_331, 0); +lean_inc(x_348); +x_349 = lean_ctor_get(x_331, 1); +lean_inc(x_349); +if (lean_is_exclusive(x_331)) { + lean_ctor_release(x_331, 0); + lean_ctor_release(x_331, 1); + x_350 = x_331; +} else { + lean_dec_ref(x_331); + x_350 = lean_box(0); +} +x_351 = lean_array_get_size(x_349); +x_352 = l_Lean_Name_hash___override(x_20); +x_353 = 32; +x_354 = lean_uint64_shift_right(x_352, x_353); +x_355 = lean_uint64_xor(x_352, x_354); +x_356 = 16; +x_357 = lean_uint64_shift_right(x_355, x_356); +x_358 = lean_uint64_xor(x_355, x_357); +x_359 = lean_uint64_to_usize(x_358); +x_360 = lean_usize_of_nat(x_351); +lean_dec(x_351); +x_361 = 1; +x_362 = lean_usize_sub(x_360, x_361); +x_363 = lean_usize_land(x_359, x_362); +x_364 = lean_array_uget(x_349, x_363); +x_365 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__6(x_20, x_364); +if (x_365 == 0) +{ +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; uint8_t x_374; +x_366 = lean_nat_add(x_348, x_327); +lean_dec(x_348); +lean_inc(x_20); +x_367 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_367, 0, x_20); +lean_ctor_set(x_367, 1, x_326); +lean_ctor_set(x_367, 2, x_364); +x_368 = lean_array_uset(x_349, x_363, x_367); +x_369 = lean_unsigned_to_nat(4u); +x_370 = lean_nat_mul(x_366, x_369); +x_371 = lean_unsigned_to_nat(3u); +x_372 = lean_nat_div(x_370, x_371); +lean_dec(x_370); +x_373 = lean_array_get_size(x_368); +x_374 = lean_nat_dec_le(x_372, x_373); +lean_dec(x_373); +lean_dec(x_372); +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; +x_375 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_368); +if (lean_is_scalar(x_350)) { + x_376 = lean_alloc_ctor(0, 2, 0); +} else { + x_376 = x_350; +} +lean_ctor_set(x_376, 0, x_366); +lean_ctor_set(x_376, 1, x_375); +x_377 = lean_box(0); +lean_inc(x_3); +x_378 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_329, x_317, x_376, x_377, x_10); +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); +x_11 = x_379; +x_12 = x_380; +goto block_17; +} +else +{ +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +if (lean_is_scalar(x_350)) { + x_381 = lean_alloc_ctor(0, 2, 0); +} else { + x_381 = x_350; +} +lean_ctor_set(x_381, 0, x_366); +lean_ctor_set(x_381, 1, x_368); +x_382 = lean_box(0); +lean_inc(x_3); +x_383 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_329, x_317, x_381, x_382, x_10); +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_11 = x_384; +x_12 = x_385; +goto block_17; +} +} +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_inc(x_2); -x_298 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_12, x_2, x_279, x_265, x_281, x_297, x_9); -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -lean_dec(x_298); -x_301 = lean_ctor_get(x_299, 0); -lean_inc(x_301); -lean_dec(x_299); -x_302 = 1; -x_303 = lean_usize_add(x_7, x_302); -x_7 = x_303; -x_8 = x_301; -x_9 = x_300; +x_386 = lean_array_uset(x_349, x_363, x_2); +lean_inc(x_20); +x_387 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__10(x_20, x_326, x_364); +x_388 = lean_array_uset(x_386, x_363, x_387); +if (lean_is_scalar(x_350)) { + x_389 = lean_alloc_ctor(0, 2, 0); +} else { + x_389 = x_350; +} +lean_ctor_set(x_389, 0, x_348); +lean_ctor_set(x_389, 1, x_388); +x_390 = lean_box(0); +lean_inc(x_3); +x_391 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_329, x_317, x_389, x_390, x_10); +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_11 = x_392; +x_12 = x_393; +goto block_17; +} +} +} +} +} +} +} +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; uint8_t x_438; +x_430 = lean_ctor_get(x_9, 1); +x_431 = lean_ctor_get(x_9, 0); +lean_inc(x_430); +lean_inc(x_431); +lean_dec(x_9); +x_432 = lean_ctor_get(x_430, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_430, 1); +lean_inc(x_433); +if (lean_is_exclusive(x_430)) { + lean_ctor_release(x_430, 0); + lean_ctor_release(x_430, 1); + x_434 = x_430; +} else { + lean_dec_ref(x_430); + x_434 = lean_box(0); +} +x_435 = lean_ctor_get(x_431, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_431, 1); +lean_inc(x_436); +x_437 = lean_ctor_get(x_431, 2); +lean_inc(x_437); +x_438 = lean_nat_dec_lt(x_436, x_437); +if (x_438 == 0) +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; +lean_dec(x_437); +lean_dec(x_436); +lean_dec(x_435); +lean_dec(x_20); +lean_dec(x_3); +lean_dec(x_2); +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_432); +lean_ctor_set(x_439, 1, x_433); +x_440 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_440, 0, x_431); +lean_ctor_set(x_440, 1, x_439); +x_441 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_441, 0, x_440); +lean_ctor_set(x_441, 1, x_10); +return x_441; +} +else +{ +lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; uint64_t x_516; uint64_t x_517; uint64_t x_518; uint64_t x_519; uint64_t x_520; uint64_t x_521; uint64_t x_522; size_t x_523; size_t x_524; size_t x_525; size_t x_526; size_t x_527; lean_object* x_528; lean_object* x_529; +lean_dec(x_434); +if (lean_is_exclusive(x_431)) { + lean_ctor_release(x_431, 0); + lean_ctor_release(x_431, 1); + lean_ctor_release(x_431, 2); + x_442 = x_431; +} else { + lean_dec_ref(x_431); + x_442 = lean_box(0); +} +x_443 = lean_array_fget(x_435, x_436); +x_444 = lean_unsigned_to_nat(1u); +x_445 = lean_nat_add(x_436, x_444); +lean_dec(x_436); +if (lean_is_scalar(x_442)) { + x_446 = lean_alloc_ctor(0, 3, 0); +} else { + x_446 = x_442; +} +lean_ctor_set(x_446, 0, x_435); +lean_ctor_set(x_446, 1, x_445); +lean_ctor_set(x_446, 2, x_437); +x_512 = lean_ctor_get(x_433, 0); +lean_inc(x_512); +x_513 = lean_ctor_get(x_433, 1); +lean_inc(x_513); +if (lean_is_exclusive(x_433)) { + lean_ctor_release(x_433, 0); + lean_ctor_release(x_433, 1); + x_514 = x_433; +} else { + lean_dec_ref(x_433); + x_514 = lean_box(0); +} +x_515 = lean_array_get_size(x_513); +x_516 = l_Lean_Name_hash___override(x_20); +x_517 = 32; +x_518 = lean_uint64_shift_right(x_516, x_517); +x_519 = lean_uint64_xor(x_516, x_518); +x_520 = 16; +x_521 = lean_uint64_shift_right(x_519, x_520); +x_522 = lean_uint64_xor(x_519, x_521); +x_523 = lean_uint64_to_usize(x_522); +x_524 = lean_usize_of_nat(x_515); +lean_dec(x_515); +x_525 = 1; +x_526 = lean_usize_sub(x_524, x_525); +x_527 = lean_usize_land(x_523, x_526); +x_528 = lean_array_uget(x_513, x_527); +x_529 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5(x_20, x_528); +if (lean_obj_tag(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; uint8_t x_539; +x_530 = lean_nat_add(x_512, x_444); +lean_dec(x_512); +lean_inc(x_443); +lean_inc(x_20); +x_531 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_531, 0, x_20); +lean_ctor_set(x_531, 1, x_443); +lean_ctor_set(x_531, 2, x_528); +x_532 = lean_array_uset(x_513, x_527, x_531); +x_533 = lean_box(0); +x_534 = lean_unsigned_to_nat(4u); +x_535 = lean_nat_mul(x_530, x_534); +x_536 = lean_unsigned_to_nat(3u); +x_537 = lean_nat_div(x_535, x_536); +lean_dec(x_535); +x_538 = lean_array_get_size(x_532); +x_539 = lean_nat_dec_le(x_537, x_538); +lean_dec(x_538); +lean_dec(x_537); +if (x_539 == 0) +{ +lean_object* x_540; lean_object* x_541; +x_540 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_532); +if (lean_is_scalar(x_514)) { + x_541 = lean_alloc_ctor(0, 2, 0); +} else { + x_541 = x_514; +} +lean_ctor_set(x_541, 0, x_530); +lean_ctor_set(x_541, 1, x_540); +x_447 = x_533; +x_448 = x_541; +goto block_511; +} +else +{ +lean_object* x_542; +if (lean_is_scalar(x_514)) { + x_542 = lean_alloc_ctor(0, 2, 0); +} else { + x_542 = x_514; +} +lean_ctor_set(x_542, 0, x_530); +lean_ctor_set(x_542, 1, x_532); +x_447 = x_533; +x_448 = x_542; +goto block_511; +} +} +else +{ +lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; +lean_dec(x_528); +x_543 = lean_ctor_get(x_529, 0); +lean_inc(x_543); +if (lean_is_exclusive(x_529)) { + lean_ctor_release(x_529, 0); + x_544 = x_529; +} else { + lean_dec_ref(x_529); + x_544 = lean_box(0); +} +if (lean_is_scalar(x_544)) { + x_545 = lean_alloc_ctor(1, 1, 0); +} else { + x_545 = x_544; +} +lean_ctor_set(x_545, 0, x_543); +if (lean_is_scalar(x_514)) { + x_546 = lean_alloc_ctor(0, 2, 0); +} else { + x_546 = x_514; +} +lean_ctor_set(x_546, 0, x_512); +lean_ctor_set(x_546, 1, x_513); +x_447 = x_545; +x_448 = x_546; +goto block_511; +} +block_511: +{ +if (lean_obj_tag(x_447) == 0) +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +lean_dec(x_443); +x_449 = lean_box(0); +lean_inc(x_3); +x_450 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_446, x_432, x_448, x_449, x_10); +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_450, 1); +lean_inc(x_452); +lean_dec(x_450); +x_11 = x_451; +x_12 = x_452; +goto block_17; +} +else +{ +lean_object* x_453; uint8_t x_454; +x_453 = lean_ctor_get(x_447, 0); +lean_inc(x_453); +lean_dec(x_447); +x_454 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_443, x_453); +if (x_454 == 0) +{ +uint8_t x_455; +x_455 = l___private_Lean_Environment_0__Lean_subsumesInfo(x_453, x_443); +lean_dec(x_443); +lean_dec(x_453); +if (x_455 == 0) +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; +lean_dec(x_448); +lean_dec(x_446); +lean_dec(x_2); +x_456 = l_Lean_throwAlreadyImported___rarg(x_1, x_432, x_3, x_20, x_10); +lean_dec(x_3); +x_457 = lean_ctor_get(x_456, 0); +lean_inc(x_457); +x_458 = lean_ctor_get(x_456, 1); +lean_inc(x_458); +if (lean_is_exclusive(x_456)) { + lean_ctor_release(x_456, 0); + lean_ctor_release(x_456, 1); + x_459 = x_456; +} else { + lean_dec_ref(x_456); + x_459 = lean_box(0); +} +if (lean_is_scalar(x_459)) { + x_460 = lean_alloc_ctor(1, 2, 0); +} else { + x_460 = x_459; +} +lean_ctor_set(x_460, 0, x_457); +lean_ctor_set(x_460, 1, x_458); +return x_460; +} +else +{ +lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; +x_461 = lean_box(0); +lean_inc(x_3); +x_462 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_446, x_432, x_448, x_461, x_10); +x_463 = lean_ctor_get(x_462, 0); +lean_inc(x_463); +x_464 = lean_ctor_get(x_462, 1); +lean_inc(x_464); +lean_dec(x_462); +x_11 = x_463; +x_12 = x_464; +goto block_17; +} +} +else +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; uint64_t x_469; uint64_t x_470; uint64_t x_471; uint64_t x_472; uint64_t x_473; uint64_t x_474; uint64_t x_475; size_t x_476; size_t x_477; size_t x_478; size_t x_479; size_t x_480; lean_object* x_481; uint8_t x_482; +lean_dec(x_453); +x_465 = lean_ctor_get(x_448, 0); +lean_inc(x_465); +x_466 = lean_ctor_get(x_448, 1); +lean_inc(x_466); +if (lean_is_exclusive(x_448)) { + lean_ctor_release(x_448, 0); + lean_ctor_release(x_448, 1); + x_467 = x_448; +} else { + lean_dec_ref(x_448); + x_467 = lean_box(0); +} +x_468 = lean_array_get_size(x_466); +x_469 = l_Lean_Name_hash___override(x_20); +x_470 = 32; +x_471 = lean_uint64_shift_right(x_469, x_470); +x_472 = lean_uint64_xor(x_469, x_471); +x_473 = 16; +x_474 = lean_uint64_shift_right(x_472, x_473); +x_475 = lean_uint64_xor(x_472, x_474); +x_476 = lean_uint64_to_usize(x_475); +x_477 = lean_usize_of_nat(x_468); +lean_dec(x_468); +x_478 = 1; +x_479 = lean_usize_sub(x_477, x_478); +x_480 = lean_usize_land(x_476, x_479); +x_481 = lean_array_uget(x_466, x_480); +x_482 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__6(x_20, x_481); +if (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; uint8_t x_491; +x_483 = lean_nat_add(x_465, x_444); +lean_dec(x_465); +lean_inc(x_20); +x_484 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_484, 0, x_20); +lean_ctor_set(x_484, 1, x_443); +lean_ctor_set(x_484, 2, x_481); +x_485 = lean_array_uset(x_466, x_480, x_484); +x_486 = lean_unsigned_to_nat(4u); +x_487 = lean_nat_mul(x_483, x_486); +x_488 = lean_unsigned_to_nat(3u); +x_489 = lean_nat_div(x_487, x_488); +lean_dec(x_487); +x_490 = lean_array_get_size(x_485); +x_491 = lean_nat_dec_le(x_489, x_490); +lean_dec(x_490); +lean_dec(x_489); +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; +x_492 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__7(x_485); +if (lean_is_scalar(x_467)) { + x_493 = lean_alloc_ctor(0, 2, 0); +} else { + x_493 = x_467; +} +lean_ctor_set(x_493, 0, x_483); +lean_ctor_set(x_493, 1, x_492); +x_494 = lean_box(0); +lean_inc(x_3); +x_495 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_446, x_432, x_493, x_494, x_10); +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +x_11 = x_496; +x_12 = x_497; +goto block_17; +} +else +{ +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; +if (lean_is_scalar(x_467)) { + x_498 = lean_alloc_ctor(0, 2, 0); +} else { + x_498 = x_467; +} +lean_ctor_set(x_498, 0, x_483); +lean_ctor_set(x_498, 1, x_485); +x_499 = lean_box(0); +lean_inc(x_3); +x_500 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_446, x_432, x_498, x_499, x_10); +x_501 = lean_ctor_get(x_500, 0); +lean_inc(x_501); +x_502 = lean_ctor_get(x_500, 1); +lean_inc(x_502); +lean_dec(x_500); +x_11 = x_501; +x_12 = x_502; +goto block_17; +} +} +else +{ +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_inc(x_2); +x_503 = lean_array_uset(x_466, x_480, x_2); +lean_inc(x_20); +x_504 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__10(x_20, x_443, x_481); +x_505 = lean_array_uset(x_503, x_480, x_504); +if (lean_is_scalar(x_467)) { + x_506 = lean_alloc_ctor(0, 2, 0); +} else { + x_506 = x_467; +} +lean_ctor_set(x_506, 0, x_465); +lean_ctor_set(x_506, 1, x_505); +x_507 = lean_box(0); +lean_inc(x_3); +x_508 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(x_20, x_3, x_446, x_432, x_506, x_507, x_10); +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_11 = x_509; +x_12 = x_510; +goto block_17; +} +} +} +} +} +} +} +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_8, x_14); +x_8 = x_15; +x_9 = x_13; +x_10 = x_12; goto _start; } } } -} -} -} -} -} LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(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) { _start: { @@ -28341,246 +29116,251 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(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_10; uint8_t x_11; -x_10 = lean_ctor_get(x_4, 1); -x_11 = lean_nat_dec_lt(x_6, x_10); -if (x_11 == 0) +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_5, 1); +x_12 = lean_nat_dec_lt(x_7, x_11); +if (x_12 == 0) { -lean_object* x_12; -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_9); -return x_12; +lean_object* x_13; +lean_dec(x_7); +lean_dec(x_4); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_10); +return x_13; } else { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_5); -if (x_13 == 0) +uint8_t x_14; +x_14 = !lean_is_exclusive(x_6); +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; lean_object* x_21; size_t x_22; lean_object* x_23; -x_14 = lean_array_fget(x_3, x_6); -x_15 = lean_ctor_get(x_14, 2); -lean_inc(x_15); -x_16 = lean_array_get_size(x_15); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_toSubarray___rarg(x_15, x_17, x_16); -x_19 = lean_box(0); -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_5); -x_22 = lean_array_size(x_20); -lean_inc(x_6); -x_23 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(x_1, x_6, x_19, x_20, x_20, x_22, x_2, x_21, x_9); -lean_dec(x_20); -if (lean_obj_tag(x_23) == 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; size_t x_23; lean_object* x_24; +x_15 = lean_array_fget(x_3, x_7); +x_16 = lean_ctor_get(x_15, 2); +lean_inc(x_16); +x_17 = lean_array_get_size(x_16); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_Array_toSubarray___rarg(x_16, x_18, x_17); +x_20 = lean_box(0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_6); +x_23 = lean_array_size(x_21); +lean_inc(x_7); +lean_inc(x_4); +x_24 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(x_1, x_4, x_7, x_20, x_21, x_21, x_23, x_2, x_22, x_10); +lean_dec(x_21); +if (lean_obj_tag(x_24) == 0) { -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_24, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_ctor_get(x_23, 1); +x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); -lean_dec(x_23); -x_27 = !lean_is_exclusive(x_25); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; size_t 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_25, 0); -x_29 = lean_ctor_get(x_14, 3); -lean_inc(x_29); -lean_dec(x_14); -x_30 = lean_array_size(x_29); -lean_inc(x_6); -x_31 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(x_6, x_19, x_29, x_29, x_30, x_2, x_28, x_26); -lean_dec(x_29); -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_ctor_set(x_25, 0, x_32); -x_34 = lean_ctor_get(x_4, 2); -x_35 = lean_nat_add(x_6, x_34); -lean_dec(x_6); -x_5 = x_25; -x_6 = x_35; -x_7 = lean_box(0); -x_8 = lean_box(0); -x_9 = x_33; -goto _start; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; size_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_37 = lean_ctor_get(x_25, 0); -x_38 = lean_ctor_get(x_25, 1); -lean_inc(x_38); -lean_inc(x_37); lean_dec(x_25); -x_39 = lean_ctor_get(x_14, 3); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; size_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_15, 3); +lean_inc(x_30); +lean_dec(x_15); +x_31 = lean_array_size(x_30); +lean_inc(x_7); +x_32 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(x_7, x_20, x_30, x_30, x_31, x_2, x_29, x_27); +lean_dec(x_30); +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); +lean_ctor_set(x_26, 0, x_33); +x_35 = lean_ctor_get(x_5, 2); +x_36 = lean_nat_add(x_7, x_35); +lean_dec(x_7); +x_6 = x_26; +x_7 = x_36; +x_8 = lean_box(0); +x_9 = lean_box(0); +x_10 = x_34; +goto _start; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; size_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; +x_38 = lean_ctor_get(x_26, 0); +x_39 = lean_ctor_get(x_26, 1); lean_inc(x_39); -lean_dec(x_14); -x_40 = lean_array_size(x_39); -lean_inc(x_6); -x_41 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(x_6, x_19, x_39, x_39, x_40, x_2, x_37, x_26); -lean_dec(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_38); +lean_dec(x_26); +x_40 = lean_ctor_get(x_15, 3); +lean_inc(x_40); +lean_dec(x_15); +x_41 = lean_array_size(x_40); +lean_inc(x_7); +x_42 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(x_7, x_20, x_40, x_40, x_41, x_2, x_38, x_27); +lean_dec(x_40); +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_38); -x_45 = lean_ctor_get(x_4, 2); -x_46 = lean_nat_add(x_6, x_45); -lean_dec(x_6); -x_5 = x_44; -x_6 = x_46; -x_7 = lean_box(0); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_39); +x_46 = lean_ctor_get(x_5, 2); +x_47 = lean_nat_add(x_7, x_46); +lean_dec(x_7); +x_6 = x_45; +x_7 = x_47; x_8 = lean_box(0); -x_9 = x_43; +x_9 = lean_box(0); +x_10 = x_44; goto _start; } } else { -uint8_t x_48; -lean_dec(x_14); -lean_dec(x_6); -x_48 = !lean_is_exclusive(x_23); -if (x_48 == 0) +uint8_t x_49; +lean_dec(x_15); +lean_dec(x_7); +lean_dec(x_4); +x_49 = !lean_is_exclusive(x_24); +if (x_49 == 0) { -return x_23; +return x_24; } else { -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_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_24, 0); +x_51 = lean_ctor_get(x_24, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_23); -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_24); +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; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; size_t x_63; lean_object* x_64; -x_52 = lean_ctor_get(x_5, 0); -x_53 = lean_ctor_get(x_5, 1); +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; size_t x_64; lean_object* x_65; +x_53 = lean_ctor_get(x_6, 0); +x_54 = lean_ctor_get(x_6, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_5); -x_54 = lean_array_fget(x_3, x_6); -x_55 = lean_ctor_get(x_54, 2); -lean_inc(x_55); -x_56 = lean_array_get_size(x_55); -x_57 = lean_unsigned_to_nat(0u); -x_58 = l_Array_toSubarray___rarg(x_55, x_57, x_56); -x_59 = lean_box(0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_52); -lean_ctor_set(x_61, 1, x_53); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_58); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_array_size(x_60); -lean_inc(x_6); -x_64 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(x_1, x_6, x_59, x_60, x_60, x_63, x_2, x_62, x_9); -lean_dec(x_60); -if (lean_obj_tag(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; size_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; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); -x_67 = lean_ctor_get(x_64, 1); -lean_inc(x_67); -lean_dec(x_64); -x_68 = lean_ctor_get(x_66, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_70 = x_66; -} else { - lean_dec_ref(x_66); - x_70 = lean_box(0); -} -x_71 = lean_ctor_get(x_54, 3); -lean_inc(x_71); -lean_dec(x_54); -x_72 = lean_array_size(x_71); -lean_inc(x_6); -x_73 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(x_6, x_59, x_71, x_71, x_72, x_2, x_68, x_67); -lean_dec(x_71); -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); -if (lean_is_scalar(x_70)) { - x_76 = lean_alloc_ctor(0, 2, 0); -} else { - x_76 = x_70; -} -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_69); -x_77 = lean_ctor_get(x_4, 2); -x_78 = lean_nat_add(x_6, x_77); lean_dec(x_6); -x_5 = x_76; -x_6 = x_78; -x_7 = lean_box(0); +x_55 = lean_array_fget(x_3, x_7); +x_56 = lean_ctor_get(x_55, 2); +lean_inc(x_56); +x_57 = lean_array_get_size(x_56); +x_58 = lean_unsigned_to_nat(0u); +x_59 = l_Array_toSubarray___rarg(x_56, x_58, x_57); +x_60 = lean_box(0); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_53); +lean_ctor_set(x_62, 1, x_54); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_array_size(x_61); +lean_inc(x_7); +lean_inc(x_4); +x_65 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(x_1, x_4, x_7, x_60, x_61, x_61, x_64, x_2, x_63, x_10); +lean_dec(x_61); +if (lean_obj_tag(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; size_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_dec(x_65); +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_71 = x_67; +} else { + lean_dec_ref(x_67); + x_71 = lean_box(0); +} +x_72 = lean_ctor_get(x_55, 3); +lean_inc(x_72); +lean_dec(x_55); +x_73 = lean_array_size(x_72); +lean_inc(x_7); +x_74 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__9(x_7, x_60, x_72, x_72, x_73, x_2, x_69, x_68); +lean_dec(x_72); +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); +if (lean_is_scalar(x_71)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_71; +} +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_70); +x_78 = lean_ctor_get(x_5, 2); +x_79 = lean_nat_add(x_7, x_78); +lean_dec(x_7); +x_6 = x_77; +x_7 = x_79; x_8 = lean_box(0); -x_9 = x_75; +x_9 = lean_box(0); +x_10 = x_76; 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_6); -x_80 = lean_ctor_get(x_64, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_64, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_55); +lean_dec(x_7); +lean_dec(x_4); +x_81 = lean_ctor_get(x_65, 0); lean_inc(x_81); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_82 = x_64; +x_82 = lean_ctor_get(x_65, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_83 = x_65; } else { - lean_dec_ref(x_64); - x_82 = lean_box(0); + lean_dec_ref(x_65); + x_83 = lean_box(0); } -if (lean_is_scalar(x_82)) { - x_83 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_83 = x_82; + x_84 = x_83; } -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; } } } @@ -28657,7 +29437,7 @@ x_5 = lean_nat_dec_lt(x_3, x_4); if (x_5 == 0) { lean_object* x_6; -x_6 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_6 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_6; } else @@ -28669,7 +29449,7 @@ lean_dec(x_7); if (x_8 == 0) { lean_object* x_9; -x_9 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_9 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; return x_9; } else @@ -28677,7 +29457,7 @@ else size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_usize_of_nat(x_3); x_11 = lean_usize_of_nat(x_4); -x_12 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_12 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_13 = l_Array_foldlMUnsafe_fold___at_Lean_finalizeImport___spec__13(x_1, x_2, x_10, x_11, x_12); return x_13; } @@ -28996,7 +29776,7 @@ lean_inc(x_30); x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_30); -x_32 = l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(x_1, x_14, x_16, x_22, x_31, x_11, lean_box(0), lean_box(0), x_17); +x_32 = l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(x_1, x_14, x_16, x_20, x_22, x_31, x_11, lean_box(0), lean_box(0), x_17); lean_dec(x_22); if (lean_obj_tag(x_32) == 0) { @@ -29297,20 +30077,20 @@ lean_dec(x_6); return x_8; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_6); -lean_dec(x_6); +size_t x_11; size_t x_12; lean_object* x_13; x_11 = lean_unbox_usize(x_7); lean_dec(x_7); -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(x_1, x_2, x_3, x_4, x_5, x_10, x_11, x_8, x_9); +x_12 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_12, x_9, x_10); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_1); -return x_12; +return x_13; } } LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___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) { @@ -29328,17 +30108,17 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -size_t x_10; lean_object* x_11; -x_10 = lean_unbox_usize(x_2); +size_t x_11; lean_object* x_12; +x_11 = lean_unbox_usize(x_2); lean_dec(x_2); -x_11 = l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); +x_12 = l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___spec__10(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -return x_11; +return x_12; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_finalizeImport___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -29571,7 +30351,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkEmptyEnvironment___lambda__1___closed__3; -x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_2 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____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); @@ -29858,7 +30638,7 @@ LEAN_EXPORT lean_object* l_Lean_withImportModules___rarg(lean_object* x_1, lean_ _start: { lean_object* x_6; uint8_t x_7; uint8_t x_8; lean_object* x_9; -x_6 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_6 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_7 = 0; x_8 = 2; x_9 = l_Lean_importModules(x_1, x_2, x_4, x_6, x_7, x_7, x_8, x_5); @@ -30975,7 +31755,7 @@ if (x_96 == 0) lean_object* x_97; lean_dec(x_18); lean_dec(x_17); -x_97 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_97 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_24 = x_97; goto block_94; } @@ -30988,7 +31768,7 @@ if (x_98 == 0) lean_object* x_99; lean_dec(x_18); lean_dec(x_17); -x_99 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_99 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_24 = x_99; goto block_94; } @@ -30998,7 +31778,7 @@ size_t x_100; size_t x_101; lean_object* x_102; lean_object* x_103; x_100 = 0; x_101 = lean_usize_of_nat(x_18); lean_dec(x_18); -x_102 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_102 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; x_103 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8(x_17, x_100, x_101, x_102); lean_dec(x_17); x_24 = x_103; @@ -31698,7 +32478,7 @@ x_14 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___s x_15 = lean_string_append(x_13, x_14); x_16 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_17 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_18 = lean_unsigned_to_nat(2053u); +x_18 = lean_unsigned_to_nat(2063u); x_19 = lean_unsigned_to_nat(17u); x_20 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_16, x_17, x_18, x_19, x_15); lean_dec(x_15); @@ -31732,7 +32512,7 @@ x_31 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___s x_32 = lean_string_append(x_30, x_31); x_33 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_34 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_35 = lean_unsigned_to_nat(2053u); +x_35 = lean_unsigned_to_nat(2063u); x_36 = lean_unsigned_to_nat(17u); x_37 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_33, x_34, x_35, x_36, x_32); lean_dec(x_32); @@ -31823,7 +32603,7 @@ x_61 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___s x_62 = lean_string_append(x_60, x_61); x_63 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_64 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_65 = lean_unsigned_to_nat(2053u); +x_65 = lean_unsigned_to_nat(2063u); x_66 = lean_unsigned_to_nat(17u); x_67 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_63, x_64, x_65, x_66, x_62); lean_dec(x_62); @@ -31857,7 +32637,7 @@ x_78 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___s x_79 = lean_string_append(x_77, x_78); x_80 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_81 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_82 = lean_unsigned_to_nat(2053u); +x_82 = lean_unsigned_to_nat(2063u); x_83 = lean_unsigned_to_nat(17u); x_84 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_80, x_81, x_82, x_83, x_79); lean_dec(x_79); @@ -31898,7 +32678,7 @@ x_98 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___s x_99 = lean_string_append(x_97, x_98); x_100 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_101 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_102 = lean_unsigned_to_nat(2053u); +x_102 = lean_unsigned_to_nat(2063u); x_103 = lean_unsigned_to_nat(17u); x_104 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_100, x_101, x_102, x_103, x_99); lean_dec(x_99); @@ -31932,7 +32712,7 @@ x_115 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_116 = lean_string_append(x_114, x_115); x_117 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_118 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_119 = lean_unsigned_to_nat(2053u); +x_119 = lean_unsigned_to_nat(2063u); x_120 = lean_unsigned_to_nat(17u); x_121 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_117, x_118, x_119, x_120, x_116); lean_dec(x_116); @@ -31973,7 +32753,7 @@ x_135 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_136 = lean_string_append(x_134, x_135); x_137 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_138 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_139 = lean_unsigned_to_nat(2053u); +x_139 = lean_unsigned_to_nat(2063u); x_140 = lean_unsigned_to_nat(17u); x_141 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_137, x_138, x_139, x_140, x_136); lean_dec(x_136); @@ -32007,7 +32787,7 @@ x_152 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_153 = lean_string_append(x_151, x_152); x_154 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_155 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_156 = lean_unsigned_to_nat(2053u); +x_156 = lean_unsigned_to_nat(2063u); x_157 = lean_unsigned_to_nat(17u); x_158 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_154, x_155, x_156, x_157, x_153); lean_dec(x_153); @@ -32048,7 +32828,7 @@ x_172 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_173 = lean_string_append(x_171, x_172); x_174 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_175 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_176 = lean_unsigned_to_nat(2053u); +x_176 = lean_unsigned_to_nat(2063u); x_177 = lean_unsigned_to_nat(17u); x_178 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_174, x_175, x_176, x_177, x_173); lean_dec(x_173); @@ -32082,7 +32862,7 @@ x_189 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_190 = lean_string_append(x_188, x_189); x_191 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_192 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_193 = lean_unsigned_to_nat(2053u); +x_193 = lean_unsigned_to_nat(2063u); x_194 = lean_unsigned_to_nat(17u); x_195 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_191, x_192, x_193, x_194, x_190); lean_dec(x_190); @@ -32123,7 +32903,7 @@ x_209 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_210 = lean_string_append(x_208, x_209); x_211 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_212 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_213 = lean_unsigned_to_nat(2053u); +x_213 = lean_unsigned_to_nat(2063u); x_214 = lean_unsigned_to_nat(17u); x_215 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_211, x_212, x_213, x_214, x_210); lean_dec(x_210); @@ -32157,7 +32937,7 @@ x_226 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___ x_227 = lean_string_append(x_225, x_226); x_228 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__4; x_229 = l_List_forIn_x27_loop___at_Lean_Environment_replayConsts_replayKernel___spec__8___lambda__2___closed__2; -x_230 = lean_unsigned_to_nat(2053u); +x_230 = lean_unsigned_to_nat(2063u); x_231 = lean_unsigned_to_nat(17u); x_232 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_228, x_229, x_230, x_231, x_227); lean_dec(x_227); @@ -33005,7 +33785,7 @@ lean_dec(x_7); x_11 = lean_ctor_get(x_6, 1); lean_inc(x_11); lean_dec(x_6); -x_12 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_12 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; lean_inc(x_11); x_13 = l_List_takeTR_go___rarg(x_11, x_11, x_10, x_12); lean_dec(x_11); @@ -34455,7 +35235,7 @@ x_35 = lean_ctor_get(x_30, 1); lean_inc(x_35); lean_dec(x_30); x_36 = lean_box(0); -x_37 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_37 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; lean_inc(x_35); x_38 = l_List_takeTR_go___rarg(x_35, x_35, x_34, x_37); lean_dec(x_35); @@ -34603,7 +35383,7 @@ x_92 = lean_ctor_get(x_87, 1); lean_inc(x_92); lean_dec(x_87); x_93 = lean_box(0); -x_94 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1; +x_94 = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1; lean_inc(x_92); x_95 = l_List_takeTR_go___rarg(x_92, x_92, x_91, x_94); lean_dec(x_92); @@ -36303,8 +37083,10 @@ l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__1 lean_mark_persistent(l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__16); l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__17 = _init_l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__17(); lean_mark_persistent(l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__17); -l_Lean_Environment_addConstAsync___lambda__7___closed__1 = _init_l_Lean_Environment_addConstAsync___lambda__7___closed__1(); -lean_mark_persistent(l_Lean_Environment_addConstAsync___lambda__7___closed__1); +l_Lean_Environment_addConstAsync___lambda__8___closed__1 = _init_l_Lean_Environment_addConstAsync___lambda__8___closed__1(); +lean_mark_persistent(l_Lean_Environment_addConstAsync___lambda__8___closed__1); +l_Lean_Environment_addConstAsync___lambda__8___closed__2 = _init_l_Lean_Environment_addConstAsync___lambda__8___closed__2(); +lean_mark_persistent(l_Lean_Environment_addConstAsync___lambda__8___closed__2); l_Lean_Environment_AddConstAsyncResult_commitSignature___closed__1 = _init_l_Lean_Environment_AddConstAsyncResult_commitSignature___closed__1(); lean_mark_persistent(l_Lean_Environment_AddConstAsyncResult_commitSignature___closed__1); l_Lean_Environment_AddConstAsyncResult_commitSignature___closed__2 = _init_l_Lean_Environment_AddConstAsyncResult_commitSignature___closed__2(); @@ -36332,9 +37114,9 @@ l_Lean_instInhabitedEnvExtension___closed__1 = _init_l_Lean_instInhabitedEnvExte lean_mark_persistent(l_Lean_instInhabitedEnvExtension___closed__1); l_Lean_instInhabitedEnvExtension___closed__2 = _init_l_Lean_instInhabitedEnvExtension___closed__2(); lean_mark_persistent(l_Lean_instInhabitedEnvExtension___closed__2); -l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1 = _init_l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1(); -lean_mark_persistent(l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501____closed__1); -if (builtin) {res = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6501_(lean_io_mk_world()); +l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1 = _init_l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1(); +lean_mark_persistent(l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564____closed__1); +if (builtin) {res = l_Lean_EnvExtension_initFn____x40_Lean_Environment___hyg_6564_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l___private_Lean_Environment_0__Lean_EnvExtension_envExtensionsRef = lean_io_result_get_value(res); lean_mark_persistent(l___private_Lean_Environment_0__Lean_EnvExtension_envExtensionsRef); @@ -36411,7 +37193,7 @@ l_Lean_instInhabitedPersistentEnvExtension___closed__4 = _init_l_Lean_instInhabi lean_mark_persistent(l_Lean_instInhabitedPersistentEnvExtension___closed__4); l_Lean_instInhabitedPersistentEnvExtension___closed__5 = _init_l_Lean_instInhabitedPersistentEnvExtension___closed__5(); lean_mark_persistent(l_Lean_instInhabitedPersistentEnvExtension___closed__5); -if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_8371_(lean_io_mk_world()); +if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_8434_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_persistentEnvExtensionsRef = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_persistentEnvExtensionsRef); diff --git a/stage0/stdlib/Lean/Meta/Tactic/FunInd.c b/stage0/stdlib/Lean/Meta/Tactic/FunInd.c index 4e17f17831..1f913594cc 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/FunInd.c +++ b/stage0/stdlib/Lean/Meta/Tactic/FunInd.c @@ -42,7 +42,6 @@ LEAN_EXPORT uint8_t l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveI static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__24___closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural(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_deriveInductionStructural_doRealize___spec__21(lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___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_EXPORT lean_object* l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -59,7 +58,7 @@ static lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_buil LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__22(lean_object*, lean_object*, lean_object*, lean_object*, 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_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__3; +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__5___closed__5; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionCase___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* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,6 +75,7 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__29(le static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__24___closed__3; extern lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__4___boxed(lean_object**); +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__1; static lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__35___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -106,6 +106,7 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___l LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__14(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__7___closed__1; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Tactic_FunInd_buildInductionCase___spec__12___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_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__6; 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_Lean_withTraceNode___at_Lean_Tactic_FunInd_foldAndCollect___spec__17___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*); @@ -115,6 +116,7 @@ static lean_object* l_Lean_Tactic_FunInd_abstractIndependentMVars___closed__1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_cleanupAfter_cleanupAfter_x3f___spec__3(lean_object*, lean_object*, uint8_t, 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_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__9; static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__12___closed__2; lean_object* l_Lean_Meta_getFunIndInfoForInduct_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); @@ -147,11 +149,13 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__6(lean_objec uint64_t lean_uint64_lor(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___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_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__11; LEAN_EXPORT lean_object* l_panic___at_Lean_Tactic_FunInd_buildInductionBody___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Structural_RecArgInfo_pickIndicesMajor(lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__10___closed__3; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__22___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*); static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__3___closed__2; lean_object* l_Lean_Meta_MatcherApp_withUserNames___at_Lean_Meta_MatcherApp_inferMatchType___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -167,9 +171,7 @@ static lean_object* l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__2; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__11___closed__1; static lean_object* l_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__4___closed__4; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__16___closed__2; -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___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*, 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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Tactic_FunInd_buildInductionBody___spec__34___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -185,8 +187,10 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealiz LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__23(lean_object*, lean_object*, lean_object*, lean_object*, 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_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__12; lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_projectMutualInduct___spec__1(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*); +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_StateT_pure___at_Lean_Tactic_FunInd_foldAndCollect___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_foldAndCollect___spec__1___lambda__3___closed__1; @@ -200,7 +204,6 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__9(lean_ob LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_cleanupAfter_cleanupAfter_x3f___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_EXPORT lean_object* l_StateT_pure___at_Lean_Tactic_FunInd_foldAndCollect___spec__16(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__9(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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_M_localMapM(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Tactic_FunInd_cleanupAfter_allHeqToEq___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,6 +211,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_instInhabitedBool; +static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__2; static lean_object* l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__6; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveCases___closed__1; @@ -222,7 +226,6 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_assertIHs(lean_object*, lean_objec LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Tactic_FunInd_buildInductionCase___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*); static lean_object* l_Lean_Tactic_FunInd_deriveInduction___lambda__2___closed__1; lean_object* l_Lean_Expr_mdata___override(lean_object*, lean_object*); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__9; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__27___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_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__12___lambda__6___closed__3; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__12___closed__1; @@ -254,10 +257,8 @@ lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27__ static lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__6___closed__3; static lean_object* l_Lean_Tactic_FunInd_deriveInduction___lambda__1___closed__2; extern lean_object* l_Lean_casesOnSuffix; -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__10; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Tactic_FunInd_foldAndCollect___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* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__8___boxed(lean_object**); lean_object* l_Lean_Meta_Match_MatcherInfo_arity(lean_object*); static lean_object* l_panic___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__13___closed__1; @@ -285,7 +286,6 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_withLetDecls___rarg(lean_object*, LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_abstractIndependentMVars___lambda__1___boxed(lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__17___closed__5; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___lambda__2___closed__2; -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__11; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isFunInductName___lambda__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___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_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__3; @@ -354,6 +354,7 @@ static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___l lean_object* l_Lean_Elab_FixedParamPerm_buildArgs___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_panic___at_Lean_Tactic_FunInd_buildInductionBody___spec__7___closed__2; +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__22___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_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___closed__1; static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___closed__2; @@ -373,9 +374,9 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_MatcherApp_inferMatchType___s static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___closed__4; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___lambda__4___closed__1; static lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__24___closed__2; +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__4; static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__17___closed__4; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__28___boxed(lean_object**); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__1; extern lean_object* l_Lean_instInhabitedLevel; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__12___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_foldAndCollect___lambda__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -388,7 +389,6 @@ static lean_object* l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__4; static lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__7___closed__1; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___spec__1___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_Tactic_FunInd_foldAndCollect___lambda__28(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_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_Lean_InductiveVal_numTypeFormers(lean_object*); @@ -442,6 +442,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_cl LEAN_EXPORT lean_object* l_StateT_lift___at_Lean_Tactic_FunInd_buildInductionCase___spec__2(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__7___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__4; uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Lean_Elab_Structural_IndGroupInst_brecOn(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveInduction___lambda__1___closed__3; @@ -449,6 +450,7 @@ uint8_t l_Lean_Expr_isSemiOutParam(lean_object*); static lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__4___closed__2; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__16___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveCases___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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_withLetDecls_go___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_Tactic_FunInd_cleanPackedArgs___lambda__5___closed__3; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Tactic_FunInd_buildInductionCase___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -468,6 +470,7 @@ lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__7___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_FixedParamPerm_instantiateLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__1; LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___lambda__2(lean_object*); lean_object* l_panic___at_Lean_Elab_Structural_Positions_groupAndSort___spec__3(lean_object*); extern lean_object* l_Lean_Elab_Structural_eqnInfoExt; @@ -485,7 +488,6 @@ static lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__6___closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isFunInductName(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Tactic_FunInd_setNaryFunIndInfo___spec__2___closed__3; -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__4; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__16___closed__4; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__17___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___spec__3(lean_object*, size_t, size_t, lean_object*); @@ -538,15 +540,14 @@ lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__23___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_buildInductionBody___lambda__13___closed__1; lean_object* l_Array_zip___rarg(lean_object*, lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__7; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___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_object*, lean_object*); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__8; lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_lambdaTelescope1___at_Lean_Tactic_FunInd_foldAndCollect___spec__15(lean_object*); lean_object* l_ReaderT_instMonadFunctor(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Tactic_FunInd_foldAndCollect___spec__17___lambda__3(lean_object*, uint8_t, 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_EXPORT lean_object* l_Lean_Tactic_FunInd_lambdaTelescope1(lean_object*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__10; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Tactic_FunInd_foldAndCollect___spec__12(lean_object*, lean_object*, size_t, size_t); @@ -589,6 +590,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_withErasedFVars___spec__3( 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*); static lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__8___closed__2; +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__4; static lean_object* l_List_forIn_x27_loop___at_Lean_Tactic_FunInd_foldAndCollect___spec__6___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Tactic_FunInd_cleanupAfter_allHeqToEq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getPrefix(lean_object*); @@ -597,7 +599,6 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealiz LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_M_branch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__27(lean_object*, lean_object*, lean_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_lambdaBoundedTelescope___at_Lean_Tactic_FunInd_buildInductionBody___spec__34(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at_Lean_Tactic_FunInd_buildInductionCase___spec__8(lean_object*); lean_object* l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(lean_object*, lean_object*); @@ -660,17 +661,18 @@ static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__17___closed__2 static lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_foldAndCollect___spec__1___lambda__2___closed__1; lean_object* lean_array_pop(lean_object*); static lean_object* l_Lean_Meta_withLocalDecls_loop___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__10___rarg___closed__2; -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_forallAltTelescope_x27___at_Lean_Tactic_FunInd_buildInductionBody___spec__26___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*); static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__16___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___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_Tactic_FunInd_deriveCases___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoInduct___at_Lean_Meta_mkProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__18___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_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___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_EXPORT lean_object* l_Lean_Tactic_FunInd_M_run(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_assertIHs___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_Tactic_FunInd_buildInductionBody___lambda__14___closed__1; +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__10; static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__13___closed__2; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); @@ -684,6 +686,7 @@ static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__10___closed__2 lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5___closed__2; static lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__11___closed__2; +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__8; LEAN_EXPORT lean_object* l_panic___at_Lean_Tactic_FunInd_foldAndCollect___spec__8(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_Tactic_FunInd_foldAndCollect___lambda__26___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*); @@ -710,7 +713,6 @@ static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__24___closed__4 LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Tactic_FunInd_lambdaTelescope1___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_buildInductionBody___spec__13(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_Tactic_FunInd_setNaryFunIndInfo___closed__11; static lean_object* l_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__4___closed__5; @@ -721,11 +723,11 @@ lean_object* lean_io_mono_nanos_now(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_buildInductionBody___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_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___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* l_Lean_Elab_FixedParamPerm_instantiateForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static uint64_t l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__3; LEAN_EXPORT lean_object* l_panic___at_Lean_Tactic_FunInd_foldAndCollect___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__12___closed__3; static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Tactic_FunInd_foldAndCollect___spec__19___closed__3; +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Tactic_FunInd_buildInductionBody___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -735,7 +737,6 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__28___boxe LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_withLetDecls_go(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___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_Tactic_FunInd_M_exec(lean_object*); -static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__11; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deduplicateIHs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___closed__1; static lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___lambda__2___closed__3; @@ -753,9 +754,11 @@ LEAN_EXPORT lean_object* l_StateT_bind___at_Lean_Tactic_FunInd_buildInductionCas LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_lambdaTelescope1___at_Lean_Tactic_FunInd_buildInductionBody___spec__33___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_Lean_Tactic_FunInd_cleanupAfter_cleanupAfter_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__5; static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__12___lambda__6(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__8___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__7___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__22___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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___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*); @@ -854,6 +857,7 @@ lean_object* l_Lean_registerReservedNamePredicate(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Tactic_FunInd_buildInductionBody___spec__17___rarg(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_lambdaTelescope___at_Lean_Tactic_FunInd_buildInductionBody___spec__17(lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___spec__1___lambda__3___closed__2; +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_abstractIndependentMVars___lambda__1(lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__13___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_projectMutualInduct___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*); @@ -861,6 +865,7 @@ static lean_object* l_Lean_Elab_Structural_Positions_groupAndSort___at_Lean_Tact LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Tactic_FunInd_buildInductionBody___spec__31___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_isFunInductName___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isFunInductName___lambda__3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__6; lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_M_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Tactic_FunInd_mkLambdaFVarsMasked___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -953,7 +958,6 @@ lean_object* l_Lean_instAddErrorMessageContextOfAddMessageContextOfMonad___rarg( lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Elab_TerminationMeasure_delab___spec__1___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___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_Lean_Tactic_FunInd_buildInductionBody___lambda__4___closed__4; -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__10; static lean_object* l_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__10___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInduction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_heqToEq(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -975,14 +979,11 @@ static lean_object* l_Lean_Tactic_FunInd_cleanupAfter_cleanupAfter_x3f___lambda_ static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__6___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecls_loop___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__10___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_Util_Trace_0__Lean_addTraceNode___at_Lean_Tactic_FunInd_buildInductionCase___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_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Tactic_FunInd_buildInductionCase___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___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_Tactic_FunInd_unpackMutualInduction_doRealize___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_throwError___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_StateT_bind___at_Lean_Tactic_FunInd_buildInductionCase___spec__6___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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__10; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__17___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Tactic_FunInd_foldAndCollect___spec__10___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__22___lambda__4(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*); @@ -998,6 +999,7 @@ lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___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_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_mkLambdaFVarsMasked(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__3; lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___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*); @@ -1057,7 +1059,6 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__9(lean_objec static lean_object* l_Lean_Tactic_FunInd_buildInductionCase___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__15(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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__3; static lean_object* l_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__12___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_abstractIndependentMVars___lambda__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_Positions_mapMwith___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__12___closed__7; @@ -1065,6 +1066,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunIn static lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__1___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_forallAltTelescope_x27___at_Lean_Tactic_FunInd_buildInductionBody___spec__26(lean_object*); lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_maskArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Tactic_FunInd_buildInductionCase___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_Tactic_FunInd_deriveCases___lambda__3___closed__3; @@ -1074,7 +1076,6 @@ lean_object* l_Lean_FVarId_getUserName(lean_object*, lean_object*, lean_object*, LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_maskArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateRefT_x27_lift(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__6; 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_Lean_Tactic_FunInd_deriveCases___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_cleanupAfter_cleanupAfter_x3f___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1082,6 +1083,7 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_withLetDecls(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Tactic_FunInd_buildInductionCase___spec__13(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_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_abstractIndependentMVars___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*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__2; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___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_EXPORT lean_object* l_Lean_Tactic_FunInd_maskArray___rarg(lean_object*, lean_object*); @@ -1098,22 +1100,24 @@ static lean_object* l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__10; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Tactic_FunInd_buildInductionCase___spec__12___lambda__3___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionCase___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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__8; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__14___boxed(lean_object**); static lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__35___closed__4; lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isFunInductName___lambda__1___boxed(lean_object*); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isFunCasesName___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_assertIHs___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_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveInduction___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___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_object*, lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__3; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Tactic_FunInd_foldAndCollect___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Tactic_FunInd_setNaryFunIndInfo___spec__1___closed__1; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__7___closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___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_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___spec__1___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_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_foldAndCollect___spec__1___lambda__3(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 uint64_t l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_M_localM(lean_object*); lean_object* lean_get_match_equations_for(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -1143,7 +1147,6 @@ static lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualI LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Tactic_FunInd_buildInductionCase___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_Positions_groupAndSort___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__8; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Tactic_FunInd_buildInductionCase___spec__12(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_getConstInfo___at_Lean_Tactic_FunInd_buildInductionBody___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1174,6 +1177,7 @@ static lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualI static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__27___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_withLetDecls_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*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isFunCasesName___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Tactic_FunInd_foldAndCollect___spec__17___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_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_buildInductionBody___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1181,11 +1185,12 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_deriveIn LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe___at_Lean_Tactic_FunInd_M_localMapM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_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_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___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*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__7; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___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*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getElimExprInfo___spec__6(lean_object*, size_t, size_t); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__9; static lean_object* l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__19___closed__1; @@ -1295,7 +1300,6 @@ lean_object* l_Lean_Meta_ArgsPacker_unpack(lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_cleanPackedArgs___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_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_foldAndCollect___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_addImplicitTargets_collect___spec__1(lean_object*, lean_object*); @@ -1303,22 +1307,20 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Structural_Positions_group LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3(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*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_assertIHs___spec__1___closed__1; static lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__9___closed__6; -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDeclsDND___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_cleanupAfter_cleanupAfter_x3f___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*); uint8_t l_Lean_isAuxRecursorWithSuffix(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__2; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__9___closed__1; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__31(lean_object*, lean_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_Tactic_FunInd_foldAndCollect___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__1; lean_object* l_Lean_Meta_Match_forallAltTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMData(lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__12; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__22___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_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__17(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_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Tactic_FunInd_cleanupAfter_allHeqToEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1365,10 +1367,10 @@ static lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__7___closed__6; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___spec__1___rarg(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_foldlMUnsafe_fold___at_Lean_Tactic_FunInd_buildInductionCase___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_lambdaTelescope1___at_Lean_Tactic_FunInd_buildInductionBody___spec__33___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_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__11(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*, 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__25___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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__1; static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda__16___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Tactic_FunInd_buildInductionBody___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_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1394,16 +1396,17 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_bu uint8_t l_Lean_Expr_isFVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_M_ask(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); +static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__9; +static lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveCases___lambda__3___boxed(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_object* l_Lean_InductiveVal_numCtors(lean_object*); -static lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__5; -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365_(lean_object*); static lean_object* l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__9; static lean_object* l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__11___closed__2; uint64_t l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_withUserNames___at_Lean_Tactic_FunInd_buildInductionBody___spec__20___rarg(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___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1(size_t, size_t, lean_object*); +static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__2; static lean_object* l_Array_mapFinIdxM_map___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__4___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_withErasedFVars___at_Lean_Tactic_FunInd_buildInductionCase___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_Elab_Structural_IndGroupInst_nestedTypeFormers___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1414,6 +1417,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_forallAltTelescope_x27___at_Lean_Tactic_FunInd_buildInductionBody___spec__26___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_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_cleanupAfter_allHeqToEq___spec__3(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* l_Lean_MessageData_ofName(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody(lean_object*, lean_object*, 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_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___lambda__2___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -1436,6 +1440,7 @@ static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction_doRealize___lambda lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__4___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Tactic_FunInd_buildInductionBody___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6(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__12___lambda__2___closed__2; lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__22(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -1457,6 +1462,7 @@ uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__16___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__17(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* l_Lean_Meta_substVar_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldAndCollect___lambda__17___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_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Tactic_FunInd_lambdaTelescope1___spec__1___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: { @@ -58885,17 +58891,20 @@ _start: { lean_object* x_9; uint8_t x_10; x_9 = lean_ctor_get(x_2, 2); +lean_inc(x_9); x_10 = l_Lean_Expr_isAppOf(x_1, x_9); +lean_dec(x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; +lean_dec(x_2); x_11 = lean_box(0); x_12 = l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__1(x_1, x_11, x_4, x_5, x_6, x_7, x_8); 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; uint8_t x_23; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 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; x_13 = lean_unsigned_to_nat(0u); x_14 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_13); x_15 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_foldAndCollect___spec__1___lambda__3___closed__1; @@ -58906,195 +58915,231 @@ x_18 = lean_nat_sub(x_14, x_17); lean_dec(x_14); lean_inc(x_1); x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18); -x_20 = lean_ctor_get(x_2, 3); -x_21 = lean_nat_add(x_20, x_17); -x_22 = lean_array_get_size(x_19); -x_23 = lean_nat_dec_le(x_21, x_22); +x_20 = lean_ctor_get(x_2, 4); +lean_inc(x_20); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_nat_add(x_21, x_17); +x_23 = lean_array_get_size(x_19); +x_24 = lean_nat_dec_le(x_22, x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_dec(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_dec(x_21); +lean_dec(x_20); lean_dec(x_19); -x_24 = lean_box(0); -x_25 = l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__1(x_1, x_24, x_4, x_5, x_6, x_7, x_8); -return x_25; +lean_dec(x_2); +x_25 = lean_box(0); +x_26 = l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__1(x_1, x_25, x_4, x_5, x_6, x_7, x_8); +return x_26; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = l_Lean_instInhabitedExpr; -x_27 = l_Array_back_x21___rarg(x_26, x_19); -x_28 = lean_ctor_get(x_2, 4); -lean_inc(x_27); -x_29 = l_Lean_Meta_ArgsPacker_unpack(x_28, x_27); -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; uint8_t x_36; +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_inc(x_21); +lean_inc(x_19); +x_27 = l_Array_toSubarray___rarg(x_19, x_13, x_21); +x_28 = lean_array_fget(x_19, x_21); lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_1); -x_30 = l_Lean_indentExpr(x_27); -x_31 = l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__2___closed__2; -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2___closed__4; -x_34 = lean_alloc_ctor(7, 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_Meta_instantiateForallWithParamInfos___spec__1(x_34, x_4, x_5, x_6, x_7, x_8); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +x_29 = lean_array_get_size(x_19); +x_30 = l_Array_toSubarray___rarg(x_19, x_22, x_29); +x_31 = lean_ctor_get(x_2, 3); +lean_inc(x_31); +lean_inc(x_28); +x_32 = l_Lean_Meta_ArgsPacker_unpack(x_31, x_28); +lean_dec(x_31); +if (lean_obj_tag(x_32) == 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); -lean_dec(x_35); -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_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_dec(x_30); lean_dec(x_27); -x_40 = !lean_is_exclusive(x_29); -if (x_40 == 0) -{ -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_29, 0); -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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_43 = lean_ctor_get(x_41, 0); -x_44 = lean_ctor_get(x_41, 1); -x_45 = lean_ctor_get(x_2, 1); -x_46 = l_Lean_instInhabitedName; -x_47 = lean_array_get(x_46, x_45, x_43); -lean_dec(x_43); -x_48 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_20); +lean_dec(x_2); lean_dec(x_1); -x_49 = l_Lean_Expr_constLevels_x21(x_48); +x_33 = l_Lean_indentExpr(x_28); +x_34 = l_Lean_Tactic_FunInd_cleanPackedArgs___lambda__2___closed__2; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2___closed__4; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_37, x_4, x_5, x_6, x_7, x_8); +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); +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; +} +} +else +{ +uint8_t x_43; +lean_dec(x_28); +x_43 = !lean_is_exclusive(x_32); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_32, 0); +x_45 = !lean_is_exclusive(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; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +x_48 = lean_ctor_get(x_20, 1); +lean_inc(x_48); +lean_dec(x_20); +x_49 = l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__8; +x_50 = lean_array_get(x_49, x_48, x_46); lean_dec(x_48); -x_50 = l_Lean_Expr_const___override(x_47, x_49); -lean_inc(x_19); -x_51 = lean_array_pop(x_19); -x_52 = l_Lean_mkAppN(x_50, x_51); +x_51 = l_Array_ofSubarray___rarg(x_27); +lean_dec(x_27); +x_52 = l_Lean_Elab_FixedParamPerm_buildArgs___rarg(x_50, x_51, x_47); lean_dec(x_51); -x_53 = l_Lean_mkAppN(x_52, x_44); -lean_dec(x_44); -x_54 = lean_array_get_size(x_19); -x_55 = l_Array_toSubarray___rarg(x_19, x_21, x_54); -x_56 = l_Array_ofSubarray___rarg(x_55); -lean_dec(x_55); -x_57 = l_Lean_mkAppN(x_53, x_56); +x_53 = lean_ctor_get(x_2, 1); +lean_inc(x_53); +lean_dec(x_2); +x_54 = l_Lean_instInhabitedName; +x_55 = lean_array_get(x_54, x_53, x_46); +lean_dec(x_46); +lean_dec(x_53); +x_56 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +x_57 = l_Lean_Expr_constLevels_x21(x_56); lean_dec(x_56); -lean_ctor_set(x_29, 0, x_57); -x_58 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_58, 0, x_29); -lean_ctor_set(x_41, 1, x_8); -lean_ctor_set(x_41, 0, x_58); -return x_41; -} -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; -x_59 = lean_ctor_get(x_41, 0); -x_60 = lean_ctor_get(x_41, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_41); -x_61 = lean_ctor_get(x_2, 1); -x_62 = l_Lean_instInhabitedName; -x_63 = lean_array_get(x_62, x_61, x_59); -lean_dec(x_59); -x_64 = l_Lean_Expr_getAppFn(x_1); -lean_dec(x_1); -x_65 = l_Lean_Expr_constLevels_x21(x_64); -lean_dec(x_64); -x_66 = l_Lean_Expr_const___override(x_63, x_65); -lean_inc(x_19); -x_67 = lean_array_pop(x_19); -x_68 = l_Lean_mkAppN(x_66, x_67); -lean_dec(x_67); -x_69 = l_Lean_mkAppN(x_68, x_60); +x_58 = l_Lean_Expr_const___override(x_55, x_57); +x_59 = l_Lean_mkAppN(x_58, x_52); +lean_dec(x_52); +x_60 = l_Array_ofSubarray___rarg(x_30); +lean_dec(x_30); +x_61 = l_Lean_mkAppN(x_59, x_60); lean_dec(x_60); -x_70 = lean_array_get_size(x_19); -x_71 = l_Array_toSubarray___rarg(x_19, x_21, x_70); -x_72 = l_Array_ofSubarray___rarg(x_71); -lean_dec(x_71); -x_73 = l_Lean_mkAppN(x_69, x_72); -lean_dec(x_72); -lean_ctor_set(x_29, 0, x_73); -x_74 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_74, 0, x_29); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_8); -return x_75; +lean_ctor_set(x_32, 0, x_61); +x_62 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_62, 0, x_32); +lean_ctor_set(x_44, 1, x_8); +lean_ctor_set(x_44, 0, x_62); +return x_44; +} +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; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_63 = lean_ctor_get(x_44, 0); +x_64 = lean_ctor_get(x_44, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_44); +x_65 = lean_ctor_get(x_20, 1); +lean_inc(x_65); +lean_dec(x_20); +x_66 = l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__8; +x_67 = lean_array_get(x_66, x_65, x_63); +lean_dec(x_65); +x_68 = l_Array_ofSubarray___rarg(x_27); +lean_dec(x_27); +x_69 = l_Lean_Elab_FixedParamPerm_buildArgs___rarg(x_67, x_68, x_64); +lean_dec(x_68); +x_70 = lean_ctor_get(x_2, 1); +lean_inc(x_70); +lean_dec(x_2); +x_71 = l_Lean_instInhabitedName; +x_72 = lean_array_get(x_71, x_70, x_63); +lean_dec(x_63); +lean_dec(x_70); +x_73 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +x_74 = l_Lean_Expr_constLevels_x21(x_73); +lean_dec(x_73); +x_75 = l_Lean_Expr_const___override(x_72, x_74); +x_76 = l_Lean_mkAppN(x_75, x_69); +lean_dec(x_69); +x_77 = l_Array_ofSubarray___rarg(x_30); +lean_dec(x_30); +x_78 = l_Lean_mkAppN(x_76, x_77); +lean_dec(x_77); +lean_ctor_set(x_32, 0, x_78); +x_79 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_79, 0, x_32); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_8); +return x_80; } } 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; 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_76 = lean_ctor_get(x_29, 0); -lean_inc(x_76); -lean_dec(x_29); -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; +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; +x_81 = lean_ctor_get(x_32, 0); +lean_inc(x_81); +lean_dec(x_32); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_84 = x_81; } else { - lean_dec_ref(x_76); - x_79 = lean_box(0); + lean_dec_ref(x_81); + x_84 = lean_box(0); } -x_80 = lean_ctor_get(x_2, 1); -x_81 = l_Lean_instInhabitedName; -x_82 = lean_array_get(x_81, x_80, x_77); -lean_dec(x_77); -x_83 = l_Lean_Expr_getAppFn(x_1); -lean_dec(x_1); -x_84 = l_Lean_Expr_constLevels_x21(x_83); -lean_dec(x_83); -x_85 = l_Lean_Expr_const___override(x_82, x_84); -lean_inc(x_19); -x_86 = lean_array_pop(x_19); -x_87 = l_Lean_mkAppN(x_85, x_86); -lean_dec(x_86); -x_88 = l_Lean_mkAppN(x_87, x_78); -lean_dec(x_78); -x_89 = lean_array_get_size(x_19); -x_90 = l_Array_toSubarray___rarg(x_19, x_21, x_89); -x_91 = l_Array_ofSubarray___rarg(x_90); +x_85 = lean_ctor_get(x_20, 1); +lean_inc(x_85); +lean_dec(x_20); +x_86 = l_Lean_Tactic_FunInd_setNaryFunIndInfo___closed__8; +x_87 = lean_array_get(x_86, x_85, x_82); +lean_dec(x_85); +x_88 = l_Array_ofSubarray___rarg(x_27); +lean_dec(x_27); +x_89 = l_Lean_Elab_FixedParamPerm_buildArgs___rarg(x_87, x_88, x_83); +lean_dec(x_88); +x_90 = lean_ctor_get(x_2, 1); +lean_inc(x_90); +lean_dec(x_2); +x_91 = l_Lean_instInhabitedName; +x_92 = lean_array_get(x_91, x_90, x_82); +lean_dec(x_82); lean_dec(x_90); -x_92 = l_Lean_mkAppN(x_88, x_91); -lean_dec(x_91); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_94 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_94, 0, x_93); -if (lean_is_scalar(x_79)) { - x_95 = lean_alloc_ctor(0, 2, 0); +x_93 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +x_94 = l_Lean_Expr_constLevels_x21(x_93); +lean_dec(x_93); +x_95 = l_Lean_Expr_const___override(x_92, x_94); +x_96 = l_Lean_mkAppN(x_95, x_89); +lean_dec(x_89); +x_97 = l_Array_ofSubarray___rarg(x_30); +lean_dec(x_30); +x_98 = l_Lean_mkAppN(x_96, x_97); +lean_dec(x_97); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_100, 0, x_99); +if (lean_is_scalar(x_84)) { + x_101 = lean_alloc_ctor(0, 2, 0); } else { - x_95 = x_79; + x_101 = x_84; } -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_8); -return x_95; +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_8); +return x_101; } } } @@ -59225,7 +59270,6 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); return x_13; } else @@ -59256,7 +59300,6 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); return x_25; } else @@ -59700,7 +59743,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); return x_9; } } @@ -61498,7 +61540,7 @@ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = l_Lean_mkAppN(x_1, x_3); -x_11 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 3); lean_inc(x_11); lean_inc(x_11); x_12 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__3), 11, 3); @@ -61583,7 +61625,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean x_27 = lean_ctor_get(x_25, 1); x_28 = lean_ctor_get(x_25, 0); lean_dec(x_28); -x_29 = lean_ctor_get(x_5, 4); +x_29 = lean_ctor_get(x_5, 3); x_30 = lean_array_get_size(x_29); x_31 = lean_unsigned_to_nat(1u); x_32 = lean_nat_dec_eq(x_30, x_31); @@ -61604,7 +61646,7 @@ 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_free_object(x_25); -x_34 = lean_ctor_get(x_5, 5); +x_34 = lean_ctor_get(x_5, 4); x_35 = lean_ctor_get(x_5, 1); x_36 = l_Lean_instInhabitedName; x_37 = lean_unsigned_to_nat(0u); @@ -61619,7 +61661,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint x_40 = lean_ctor_get(x_25, 1); lean_inc(x_40); lean_dec(x_25); -x_41 = lean_ctor_get(x_5, 4); +x_41 = lean_ctor_get(x_5, 3); x_42 = lean_array_get_size(x_41); x_43 = lean_unsigned_to_nat(1u); x_44 = lean_nat_dec_eq(x_42, x_43); @@ -61641,7 +61683,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; -x_47 = lean_ctor_get(x_5, 5); +x_47 = lean_ctor_get(x_5, 4); x_48 = lean_ctor_get(x_5, 1); x_49 = l_Lean_instInhabitedName; x_50 = lean_unsigned_to_nat(0u); @@ -61744,6 +61786,368 @@ return x_64; } } } +static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("final term is type incorrect:", 29, 29); +return x_1; +} +} +static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___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) { +_start: +{ +lean_object* x_10; +lean_inc(x_1); +x_10 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(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_19; uint8_t x_20; lean_object* x_21; +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 = l_Lean_ConstantInfo_levelParams(x_11); +x_14 = l_Lean_ConstantInfo_name(x_11); +x_15 = lean_box(0); +lean_inc(x_13); +x_16 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_13, x_15); +x_17 = l_Lean_Expr_const___override(x_14, x_16); +x_18 = l_Lean_ConstantInfo_type(x_11); +lean_dec(x_11); +lean_inc(x_1); +x_19 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__1___boxed), 9, 2); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_2); +x_20 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_18); +x_21 = l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27___spec__1___rarg(x_18, x_19, x_20, x_5, x_6, x_7, x_8, x_12); +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; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_22); +lean_inc(x_3); +x_25 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__4), 9, 2); +lean_closure_set(x_25, 0, x_17); +lean_closure_set(x_25, 1, x_3); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_26 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_18, x_24, x_25, x_20, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_26) == 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); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_27); +x_29 = l_Lean_Meta_isTypeCorrect(x_27, x_5, x_6, x_7, x_8, x_28); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; uint8_t x_31; +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) +{ +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_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +lean_inc(x_27); +x_33 = l_Lean_indentExpr(x_27); +x_34 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__2; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2___closed__4; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = 2; +lean_inc(x_7); +x_39 = l_Lean_log___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1(x_37, x_38, x_5, x_6, x_7, x_8, x_32); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_27); +x_41 = l_Lean_Meta_check(x_27, x_5, x_6, x_7, x_8, x_40); +if (lean_obj_tag(x_41) == 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_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5(x_27, x_4, x_13, x_15, x_3, x_1, x_42, x_5, x_6, x_7, x_8, x_43); +lean_dec(x_42); +lean_dec(x_3); +return x_44; +} +else +{ +uint8_t x_45; +lean_dec(x_27); +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_1); +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) +{ +return x_41; +} +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_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; +} +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_29, 1); +lean_inc(x_49); +lean_dec(x_29); +x_50 = lean_box(0); +x_51 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5(x_27, x_4, x_13, x_15, x_3, x_1, x_50, x_5, x_6, x_7, x_8, x_49); +lean_dec(x_3); +return x_51; +} +} +else +{ +uint8_t x_52; +lean_dec(x_27); +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_1); +x_52 = !lean_is_exclusive(x_29); +if (x_52 == 0) +{ +return x_29; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_29, 0); +x_54 = lean_ctor_get(x_29, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_29); +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_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_56 = !lean_is_exclusive(x_26); +if (x_56 == 0) +{ +return x_26; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_26, 0); +x_58 = lean_ctor_get(x_26, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_26); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_18); +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_1); +x_60 = !lean_is_exclusive(x_21); +if (x_60 == 0) +{ +return x_21; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_21, 0); +x_62 = lean_ctor_get(x_21, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_21); +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_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_is_exclusive(x_10); +if (x_64 == 0) +{ +return x_10; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_10, 0); +x_66 = lean_ctor_get(x_10, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_10); +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; +} +} +} +} +static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Cannot unpack functional cases principle ", 41, 41); +return x_1; +} +} +static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" (please report this issue)\n", 28, 28); +return x_1; +} +} +static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7(lean_object* x_1, lean_object* x_2) { +_start: +{ +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; +x_3 = 0; +x_4 = l_Lean_MessageData_ofConstName(x_1, x_3); +x_5 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__2; +x_6 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +x_7 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__4; +x_8 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_indentD(x_2); +x_10 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2___closed__4; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__1() { _start: { @@ -61843,23 +62247,6 @@ lean_ctor_set(x_5, 2, x_4); return x_5; } } -static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("failed to unpack induction principle:", 37, 37); -return x_1; -} -} -static lean_object* _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__10; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize(lean_object* x_1, 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: { @@ -61873,319 +62260,93 @@ lean_inc(x_3); x_9 = l_Lean_Tactic_FunInd_deriveUnaryInduction(x_8, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; +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_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); +x_12 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__9; lean_inc(x_10); -x_12 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_10, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_12) == 0) +x_13 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6), 9, 4); +lean_closure_set(x_13, 0, x_10); +lean_closure_set(x_13, 1, x_12); +lean_closure_set(x_13, 2, x_1); +lean_closure_set(x_13, 3, x_2); +x_14 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7), 2, 1); +lean_closure_set(x_14, 0, x_10); +x_15 = l_Lean_Meta_mapErrorImp___rarg(x_13, x_14, x_3, x_4, x_5, x_6, x_11); +if (lean_obj_tag(x_15) == 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; uint8_t x_23; lean_object* x_24; -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_ConstantInfo_levelParams(x_13); -x_16 = l_Lean_ConstantInfo_name(x_13); -x_17 = lean_box(0); -lean_inc(x_15); -x_18 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_15, x_17); -x_19 = l_Lean_Expr_const___override(x_16, x_18); -x_20 = l_Lean_ConstantInfo_type(x_13); -lean_dec(x_13); -x_21 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__9; -lean_inc(x_10); -x_22 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__1___boxed), 9, 2); -lean_closure_set(x_22, 0, x_10); -lean_closure_set(x_22, 1, x_21); -x_23 = 0; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_20); -x_24 = l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27___spec__1___rarg(x_20, x_22, x_23, x_3, x_4, x_5, x_6, x_14); -if (lean_obj_tag(x_24) == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 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_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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_25); -lean_inc(x_1); -x_28 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__4), 9, 2); -lean_closure_set(x_28, 0, x_19); -lean_closure_set(x_28, 1, x_1); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_29 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_20, x_27, x_28, x_23, x_3, x_4, x_5, x_6, x_26); -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); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_30); -x_32 = l_Lean_Meta_isTypeCorrect(x_30, x_3, x_4, x_5, x_6, x_31); -if (lean_obj_tag(x_32) == 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_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; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -lean_inc(x_30); -x_36 = l_Lean_indentExpr(x_30); -x_37 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__11; -x_38 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = l_Lean_Tactic_FunInd_lambdaTelescope1___rarg___lambda__2___closed__4; -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = 2; -lean_inc(x_5); -x_42 = l_Lean_log___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1(x_40, x_41, x_3, x_4, x_5, x_6, x_35); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_30); -x_44 = l_Lean_Meta_check(x_30, x_3, x_4, x_5, x_6, 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_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5(x_30, x_2, x_15, x_17, x_1, x_10, x_45, x_3, x_4, x_5, x_6, x_46); -lean_dec(x_45); -lean_dec(x_1); -return x_47; +return x_15; } else { -uint8_t x_48; -lean_dec(x_30); +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); -lean_dec(x_10); -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_44); -if (x_48 == 0) -{ -return x_44; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_44, 0); -x_50 = lean_ctor_get(x_44, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_44); -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; -x_52 = lean_ctor_get(x_32, 1); -lean_inc(x_52); -lean_dec(x_32); -x_53 = lean_box(0); -x_54 = l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5(x_30, x_2, x_15, x_17, x_1, x_10, x_53, x_3, x_4, x_5, x_6, x_52); -lean_dec(x_1); -return x_54; +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_55; -lean_dec(x_30); +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); -lean_dec(x_10); +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; 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_32); -if (x_55 == 0) -{ -return x_32; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* 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 = 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_15); -lean_dec(x_10); -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_29); -if (x_59 == 0) -{ -return x_29; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_29, 0); -x_61 = lean_ctor_get(x_29, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_29); -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_63; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_10); -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_63 = !lean_is_exclusive(x_24); -if (x_63 == 0) -{ -return x_24; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_24, 0); -x_65 = lean_ctor_get(x_24, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_24); -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_dec(x_10); -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_is_exclusive(x_12); -if (x_67 == 0) -{ -return x_12; -} -else -{ -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_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; -} -} -} -else -{ -uint8_t x_71; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_71 = !lean_is_exclusive(x_9); -if (x_71 == 0) +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) { return x_9; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_9, 0); -x_73 = lean_ctor_get(x_9, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_9); -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_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; } } } @@ -62544,7 +62705,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__3; -x_3 = lean_unsigned_to_nat(945u); +x_3 = lean_unsigned_to_nat(948u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -67917,7 +68078,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__1; -x_3 = lean_unsigned_to_nat(1118u); +x_3 = lean_unsigned_to_nat(1121u); x_4 = lean_unsigned_to_nat(73u); x_5 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -67930,7 +68091,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__1; -x_3 = lean_unsigned_to_nat(1120u); +x_3 = lean_unsigned_to_nat(1123u); x_4 = lean_unsigned_to_nat(62u); x_5 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -67960,7 +68121,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__1; -x_3 = lean_unsigned_to_nat(1119u); +x_3 = lean_unsigned_to_nat(1122u); x_4 = lean_unsigned_to_nat(67u); x_5 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -72220,7 +72381,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__1; -x_3 = lean_unsigned_to_nat(1041u); +x_3 = lean_unsigned_to_nat(1044u); x_4 = lean_unsigned_to_nat(6u); x_5 = l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___lambda__11___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -73114,7 +73275,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__1; -x_3 = lean_unsigned_to_nat(992u); +x_3 = lean_unsigned_to_nat(995u); x_4 = lean_unsigned_to_nat(41u); x_5 = l_List_forIn_x27_loop___at_Lean_Tactic_FunInd_foldAndCollect___spec__6___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -74002,7 +74163,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_Tactic_FunInd_foldAndCollect___lambda__9___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___spec__19___lambda__3___closed__1; -x_3 = lean_unsigned_to_nat(970u); +x_3 = lean_unsigned_to_nat(973u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Tactic_FunInd_deriveInductionStructural_doRealize___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -77768,7 +77929,7 @@ lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_inc(x_79); x_99 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction), 6, 1); lean_closure_set(x_99, 0, x_79); -x_100 = lean_ctor_get(x_79, 4); +x_100 = lean_ctor_get(x_79, 3); lean_inc(x_100); x_101 = lean_array_get_size(x_100); lean_dec(x_100); @@ -77787,7 +77948,7 @@ return x_104; else { lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_105 = lean_ctor_get(x_79, 5); +x_105 = lean_ctor_get(x_79, 4); lean_inc(x_105); lean_dec(x_79); x_106 = l_Lean_instInhabitedName; @@ -78069,7 +78230,7 @@ lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_inc(x_155); x_173 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_unpackMutualInduction), 6, 1); lean_closure_set(x_173, 0, x_155); -x_174 = lean_ctor_get(x_155, 4); +x_174 = lean_ctor_get(x_155, 3); lean_inc(x_174); x_175 = lean_array_get_size(x_174); lean_dec(x_174); @@ -78088,7 +78249,7 @@ 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; -x_179 = lean_ctor_get(x_155, 5); +x_179 = lean_ctor_get(x_155, 4); lean_inc(x_179); lean_dec(x_155); x_180 = l_Lean_instInhabitedName; @@ -78647,7 +78808,7 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__1(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; lean_object* x_7; @@ -78659,15 +78820,15 @@ lean_ctor_set(x_7, 1, x_4); return x_7; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__1___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__1___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2() { _start: { uint8_t x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; @@ -78698,16 +78859,16 @@ lean_ctor_set_uint8(x_6, 17, x_2); return x_6; } } -static uint64_t _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__3() { +static uint64_t _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__3() { _start: { lean_object* x_1; uint64_t x_2; -x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2; +x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2; x_2 = l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(x_1); return x_2; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__4() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__4() { _start: { lean_object* x_1; @@ -78715,22 +78876,22 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__4; +x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__6() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5; +x_2 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5; x_3 = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Tactic_FunInd_foldAndCollect___spec__19___closed__3; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_2); @@ -78739,16 +78900,16 @@ lean_ctor_set(x_4, 2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_1 = lean_box(0); x_2 = lean_box(0); -x_3 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2; -x_4 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__3; +x_3 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2; +x_4 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__3; x_5 = 0; -x_6 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__6; +x_6 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__6; x_7 = l_Lean_Tactic_FunInd_M_run___rarg___closed__1; x_8 = lean_unsigned_to_nat(0u); x_9 = lean_alloc_ctor(0, 7, 11); @@ -78766,12 +78927,12 @@ lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 10, x_5); return x_9; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__8() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5; +x_2 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5; x_3 = lean_alloc_ctor(0, 9, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -78785,11 +78946,11 @@ lean_ctor_set(x_3, 8, x_2); return x_3; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__9() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5; +x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5; x_2 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -78800,11 +78961,11 @@ lean_ctor_set(x_2, 5, x_1); return x_2; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__10() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5; +x_1 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5; x_2 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -78813,15 +78974,15 @@ lean_ctor_set(x_2, 3, x_1); return x_2; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11() { _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 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__8; -x_3 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__9; +x_2 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__8; +x_3 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__9; x_4 = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Tactic_FunInd_foldAndCollect___spec__19___closed__3; -x_5 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__10; +x_5 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__10; x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_2); lean_ctor_set(x_6, 1, x_3); @@ -78831,7 +78992,7 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2(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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____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; uint8_t x_7; @@ -78845,7 +79006,7 @@ x_9 = lean_ctor_get(x_6, 1); x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); -x_11 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1; +x_11 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1; lean_inc(x_1); x_12 = l_Lean_Tactic_FunInd_isFunCasesName(x_10, x_1); if (x_12 == 0) @@ -78866,14 +79027,14 @@ lean_free_object(x_6); x_15 = lean_ctor_get(x_1, 0); lean_inc(x_15); lean_dec(x_1); -x_16 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11; +x_16 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11; x_17 = lean_st_mk_ref(x_16, 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 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7; +x_20 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7; lean_inc(x_18); x_21 = l_Lean_Tactic_FunInd_deriveCases(x_15, x_20, x_18, x_3, x_4, x_19); if (lean_obj_tag(x_21) == 0) @@ -78957,7 +79118,7 @@ lean_dec(x_6); x_40 = lean_ctor_get(x_38, 0); lean_inc(x_40); lean_dec(x_38); -x_41 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1; +x_41 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1; lean_inc(x_1); x_42 = l_Lean_Tactic_FunInd_isFunCasesName(x_40, x_1); if (x_42 == 0) @@ -78976,14 +79137,14 @@ lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean x_45 = lean_ctor_get(x_1, 0); lean_inc(x_45); lean_dec(x_1); -x_46 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11; +x_46 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11; x_47 = lean_st_mk_ref(x_46, x_39); 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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7; +x_50 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7; lean_inc(x_48); x_51 = l_Lean_Tactic_FunInd_deriveCases(x_45, x_50, x_48, x_3, x_4, x_49); if (lean_obj_tag(x_51) == 0) @@ -79058,7 +79219,7 @@ return x_65; } } } -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__3(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; @@ -79081,7 +79242,7 @@ if (x_11 == 0) lean_object* x_12; lean_object* x_13; lean_free_object(x_5); x_12 = lean_box(0); -x_13 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2(x_1, x_12, x_2, x_3, x_8); +x_13 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2(x_1, x_12, x_2, x_3, x_8); return x_13; } else @@ -79093,14 +79254,14 @@ lean_free_object(x_5); x_14 = lean_ctor_get(x_1, 0); lean_inc(x_14); lean_dec(x_1); -x_15 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11; +x_15 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11; x_16 = lean_st_mk_ref(x_15, x_8); 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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7; +x_19 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7; lean_inc(x_17); x_20 = l_Lean_Tactic_FunInd_deriveInduction(x_14, x_19, x_17, x_2, x_3, x_18); if (lean_obj_tag(x_20) == 0) @@ -79192,7 +79353,7 @@ if (x_41 == 0) { lean_object* x_42; lean_object* x_43; x_42 = lean_box(0); -x_43 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2(x_1, x_42, x_2, x_3, x_38); +x_43 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2(x_1, x_42, x_2, x_3, x_38); return x_43; } else @@ -79203,14 +79364,14 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean x_44 = lean_ctor_get(x_1, 0); lean_inc(x_44); lean_dec(x_1); -x_45 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11; +x_45 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11; x_46 = lean_st_mk_ref(x_45, x_38); 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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7; +x_49 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7; lean_inc(x_47); x_50 = l_Lean_Tactic_FunInd_deriveInduction(x_44, x_49, x_47, x_2, x_3, x_48); if (lean_obj_tag(x_50) == 0) @@ -79285,7 +79446,7 @@ return x_64; } } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__1() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__1() { _start: { lean_object* x_1; @@ -79293,7 +79454,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_isFunInductName), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__2() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__2() { _start: { lean_object* x_1; @@ -79301,19 +79462,19 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_isFunCasesName___boxed), 2 return x_1; } } -static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__3() { +static lean_object* _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__3), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__3), 4, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__1; +x_2 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__1; x_3 = l_Lean_registerReservedNamePredicate(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -79321,7 +79482,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__2; +x_5 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__2; x_6 = l_Lean_registerReservedNamePredicate(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -79329,7 +79490,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__3; +x_8 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__3; x_9 = l_Lean_registerReservedNameAction(x_8, x_7); return x_9; } @@ -79380,27 +79541,27 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____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_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); return x_6; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__1() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__1() { _start: { lean_object* x_1; @@ -79408,17 +79569,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__2() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__1; +x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__3() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__3() { _start: { lean_object* x_1; @@ -79426,17 +79587,17 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__4() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__2; -x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__3; +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__2; +x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__5() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__5() { _start: { lean_object* x_1; @@ -79444,47 +79605,47 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__6() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__4; -x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__5; +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__4; +x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__7() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__6; +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__6; x_2 = l_Lean_Tactic_FunInd_foldAndCollect___lambda__28___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__8() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__7; +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__7; x_2 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__25___lambda__2___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__9() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__8; +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__8; x_2 = l_Lean_Tactic_FunInd_foldAndCollect___lambda__28___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__10() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__10() { _start: { lean_object* x_1; @@ -79492,33 +79653,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__11() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__9; -x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__10; +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__9; +x_2 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__12() { +static lean_object* _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__11; -x_2 = lean_unsigned_to_nat(19632u); +x_1 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__11; +x_2 = lean_unsigned_to_nat(19721u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721_(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_Tactic_FunInd_foldAndCollect___lambda__28___closed__3; x_3 = 0; -x_4 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__12; +x_4 = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__12; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -80056,6 +80217,18 @@ l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5___closed__1 = _ lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5___closed__1); l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5___closed__2 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5___closed__2(); lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__5___closed__2); +l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__1 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__1); +l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__2 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__6___closed__2); +l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__1 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__1(); +lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__1); +l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__2 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__2(); +lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__2); +l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__3 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__3(); +lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__3); +l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__4 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__4(); +lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___lambda__7___closed__4); l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__1 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__1(); lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__1); l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__2 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__2(); @@ -80074,10 +80247,6 @@ l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__8 = _init_l_Lean_ lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__8); l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__9 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__9(); lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__9); -l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__10 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__10(); -lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__10); -l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__11 = _init_l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__11(); -lean_mark_persistent(l_Lean_Tactic_FunInd_unpackMutualInduction_doRealize___closed__11); l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__1 = _init_l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__1(); lean_mark_persistent(l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__1); l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__2 = _init_l_Lean_Tactic_FunInd_withLetDecls___rarg___closed__2(); @@ -80310,61 +80479,61 @@ l_Lean_Tactic_FunInd_isFunInductName___closed__2 = _init_l_Lean_Tactic_FunInd_is lean_mark_persistent(l_Lean_Tactic_FunInd_isFunInductName___closed__2); l_Lean_Tactic_FunInd_isFunCasesName___closed__1 = _init_l_Lean_Tactic_FunInd_isFunCasesName___closed__1(); lean_mark_persistent(l_Lean_Tactic_FunInd_isFunCasesName___closed__1); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__1); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__2); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__3 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__3(); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__4 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__4(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__4); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__5); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__6 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__6(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__6); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__7); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__8 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__8(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__8); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__9 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__9(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__9); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__10 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__10(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__10); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____lambda__2___closed__11); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__1 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__1(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__1); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__2 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__2(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__2); -l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__3 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__3(); -lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365____closed__3); -if (builtin) {res = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19365_(lean_io_mk_world()); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__1); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__2); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__3 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__3(); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__4 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__4); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__5); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__6 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__6(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__6); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__7); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__8 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__8(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__8); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__9 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__9(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__9); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__10 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__10(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__10); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____lambda__2___closed__11); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__1 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__1(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__1); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__2 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__2(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__2); +l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__3 = _init_l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__3(); +lean_mark_persistent(l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454____closed__3); +if (builtin) {res = l_Lean_Tactic_FunInd_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19454_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__1 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__1(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__1); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__2 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__2(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__2); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__3 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__3(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__3); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__4 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__4(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__4); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__5 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__5(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__5); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__6 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__6(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__6); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__7 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__7(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__7); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__8 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__8(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__8); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__9 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__9(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__9); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__10 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__10(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__10); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__11 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__11(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__11); -l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__12 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__12(); -lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632____closed__12); -if (builtin) {res = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19632_(lean_io_mk_world()); +}l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__1 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__1(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__1); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__2 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__2(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__2); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__3 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__3(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__3); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__4 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__4(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__4); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__5 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__5(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__5); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__6 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__6(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__6); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__7 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__7(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__7); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__8 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__8(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__8); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__9 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__9(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__9); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__10 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__10(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__10); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__11 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__11(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__11); +l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__12 = _init_l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__12(); +lean_mark_persistent(l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721____closed__12); +if (builtin) {res = l_initFn____x40_Lean_Meta_Tactic_FunInd___hyg_19721_(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/Tactic/Grind/EMatchTheorem.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c index d2b6267d49..3cf6880eb7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c @@ -332,7 +332,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_ConstantInfo_isTheorem(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldrM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); @@ -938,6 +937,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_noConfusion___rarg_ static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_groundPattern_x3f___boxed(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprEMatchTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1379____closed__24; +uint8_t l_Lean_wasOriginallyTheorem(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchTheoremForDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -24662,152 +24662,298 @@ lean_inc(x_1); x_7 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; lean_object* x_9; uint8_t x_10; +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_7); -x_10 = l_Lean_ConstantInfo_isTheorem(x_8); -if (x_10 == 0) +x_10 = lean_st_ref_get(x_5, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = l_Lean_ConstantInfo_type(x_8); +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, 0); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_1); +x_15 = l_Lean_wasOriginallyTheorem(x_14, x_1); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = l_Lean_ConstantInfo_type(x_8); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_12 = l_Lean_Meta_isProp(x_11, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_12) == 0) +x_17 = l_Lean_Meta_isProp(x_16, x_2, x_3, x_4, x_5, x_13); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_13; uint8_t x_14; -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_18; uint8_t x_19; +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_15; 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_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_dec(x_8); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l_Lean_MessageData_ofName(x_1); -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2; -x_18 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__4; -x_20 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_20, x_2, x_3, x_4, x_5, x_15); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = l_Lean_MessageData_ofName(x_1); +x_22 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2; +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_21); +lean_ctor_set(x_10, 0, x_22); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__4; +x_24 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_24, 0, x_10); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_24, 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); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -return x_21; -} -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_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; } -} else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_12, 1); -lean_inc(x_26); -lean_dec(x_12); -x_27 = lean_box(0); -x_28 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___lambda__1(x_8, x_1, x_27, 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); -return x_28; +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(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_29; -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_29 = !lean_is_exclusive(x_12); -if (x_29 == 0) -{ -return x_12; -} -else -{ lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_12, 0); -x_31 = lean_ctor_get(x_12, 1); -lean_inc(x_31); +lean_free_object(x_10); +x_30 = lean_ctor_get(x_17, 1); lean_inc(x_30); -lean_dec(x_12); -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; -x_33 = lean_box(0); -x_34 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___lambda__1(x_8, x_1, x_33, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_17); +x_31 = lean_box(0); +x_32 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___lambda__1(x_8, x_1, x_31, 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); lean_dec(x_8); -return x_34; +return x_32; } } else { -uint8_t x_35; +uint8_t x_33; +lean_free_object(x_10); +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_35 = !lean_is_exclusive(x_7); -if (x_35 == 0) +x_33 = !lean_is_exclusive(x_17); +if (x_33 == 0) +{ +return x_17; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* 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 = 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_37; lean_object* x_38; +lean_free_object(x_10); +x_37 = lean_box(0); +x_38 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___lambda__1(x_8, x_1, x_37, x_2, x_3, x_4, x_5, x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_39 = lean_ctor_get(x_10, 0); +x_40 = lean_ctor_get(x_10, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_10); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_1); +x_42 = l_Lean_wasOriginallyTheorem(x_41, x_1); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = l_Lean_ConstantInfo_type(x_8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_44 = l_Lean_Meta_isProp(x_43, x_2, x_3, x_4, x_5, x_40); +if (lean_obj_tag(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) +{ +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_dec(x_8); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l_Lean_MessageData_ofName(x_1); +x_49 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2; +x_50 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__4; +x_52 = lean_alloc_ctor(7, 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_Meta_instantiateForallWithParamInfos___spec__1(x_52, 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); +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_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_44, 1); +lean_inc(x_58); +lean_dec(x_44); +x_59 = lean_box(0); +x_60 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___lambda__1(x_8, x_1, x_59, x_2, x_3, x_4, x_5, x_58); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +return x_60; +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +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_61 = lean_ctor_get(x_44, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_44, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_63 = x_44; +} else { + lean_dec_ref(x_44); + 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_object* x_66; +x_65 = lean_box(0); +x_66 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___lambda__1(x_8, x_1, x_65, 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); +lean_dec(x_8); +return x_66; +} +} +} +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_7); +if (x_67 == 0) { return x_7; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_7, 0); -x_37 = lean_ctor_get(x_7, 1); -lean_inc(x_37); -lean_inc(x_36); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_7, 0); +x_69 = lean_ctor_get(x_7, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_7); -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_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; } } } @@ -33428,7 +33574,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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__3; x_2 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__2; -x_3 = lean_unsigned_to_nat(841u); +x_3 = lean_unsigned_to_nat(842u); x_4 = lean_unsigned_to_nat(13u); x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__5; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -36183,223 +36329,398 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(lean_object* x_1, uint8_t 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) { _start: { -lean_object* x_10; +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_ref_get(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; 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, 0); +lean_inc(x_14); +lean_dec(x_12); lean_inc(x_1); -x_10 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +x_15 = l_Lean_wasOriginallyTheorem(x_14, x_1); +if (x_15 == 0) { -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_ConstantInfo_isTheorem(x_11); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +lean_object* x_16; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_14 = l_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f(x_1, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_14) == 0) +x_16 = l_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f(x_1, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_15; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; 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_18; 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_free_object(x_10); lean_dec(x_1); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_toAttribute(x_3); -x_18 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__3; -x_19 = lean_string_append(x_18, x_17); -lean_dec(x_17); -x_20 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__1; -x_21 = lean_string_append(x_19, x_20); -x_22 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = l_Lean_MessageData_ofFormat(x_22); -x_24 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_23, x_5, x_6, x_7, x_8, x_16); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_toAttribute(x_3); +x_20 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__3; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +x_22 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__1; +x_23 = lean_string_append(x_21, x_22); +x_24 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = l_Lean_MessageData_ofFormat(x_24); +x_26 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_25, x_5, x_6, x_7, x_8, x_18); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_24; +return x_26; } else { if (x_4 == 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; uint8_t x_32; -lean_dec(x_15); -x_25 = lean_ctor_get(x_14, 1); -lean_inc(x_25); -lean_dec(x_14); -x_26 = l_Lean_MessageData_ofName(x_1); -x_27 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -x_28 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__3; -x_30 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_30, x_5, x_6, x_7, x_8, x_25); +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_dec(x_17); +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_dec(x_16); +x_28 = l_Lean_MessageData_ofName(x_1); +x_29 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_28); +lean_ctor_set(x_10, 0, x_29); +x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__3; +x_31 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_31, 0, x_10); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_31, x_5, x_6, x_7, x_8, x_27); lean_dec(x_8); lean_dec(x_7); 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) { -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 { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_free_object(x_10); lean_dec(x_1); -x_36 = lean_ctor_get(x_14, 1); -lean_inc(x_36); -lean_dec(x_14); -x_37 = lean_ctor_get(x_15, 0); +x_37 = lean_ctor_get(x_16, 1); lean_inc(x_37); -lean_dec(x_15); -x_38 = lean_box(0); -x_39 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___lambda__1(x_37, x_2, x_38, x_5, x_6, x_7, x_8, x_36); +lean_dec(x_16); +x_38 = lean_ctor_get(x_17, 0); +lean_inc(x_38); +lean_dec(x_17); +x_39 = lean_box(0); +x_40 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___lambda__1(x_38, x_2, x_39, 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_37); -return x_39; +lean_dec(x_38); +return x_40; } } } else { -uint8_t x_40; +uint8_t x_41; +lean_free_object(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_14); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_16); +if (x_41 == 0) { -return x_14; +return x_16; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_14, 0); -x_42 = lean_ctor_get(x_14, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_16, 0); +x_43 = lean_ctor_get(x_16, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_14); -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_16); +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; -x_44 = 1; +uint8_t x_45; lean_object* x_46; +lean_free_object(x_10); +x_45 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_45 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_44, x_4, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_45) == 0) +x_46 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_45, x_4, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_46) == 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_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); -lean_dec(x_45); -x_48 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; -x_49 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_48, x_46, x_2, x_5, x_6, x_7, x_8, x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_50 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_49, x_47, x_2, x_5, x_6, x_7, x_8, x_48); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -return x_49; +return x_50; } else { -uint8_t x_50; +uint8_t x_51; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) +x_51 = !lean_is_exclusive(x_46); +if (x_51 == 0) { -return x_45; +return x_46; } else { -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_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_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -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; +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; } } } } else { -uint8_t x_54; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_54 = !lean_is_exclusive(x_10); -if (x_54 == 0) -{ -return x_10; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; 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_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_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +lean_dec(x_55); +lean_inc(x_1); +x_58 = l_Lean_wasOriginallyTheorem(x_57, x_1); +if (x_58 == 0) +{ +lean_object* x_59; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_59 = l_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f(x_1, x_5, x_6, x_7, x_8, x_56); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_1); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_toAttribute(x_3); +x_63 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__3; +x_64 = lean_string_append(x_63, x_62); +lean_dec(x_62); +x_65 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__1; +x_66 = lean_string_append(x_64, x_65); +x_67 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_68 = l_Lean_MessageData_ofFormat(x_67); +x_69 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_68, x_5, x_6, x_7, x_8, x_61); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_69; +} +else +{ +if (x_4 == 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_dec(x_60); +x_70 = lean_ctor_get(x_59, 1); +lean_inc(x_70); +lean_dec(x_59); +x_71 = l_Lean_MessageData_ofName(x_1); +x_72 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +x_74 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__3; +x_75 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_75, 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_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(1, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_1); +x_81 = lean_ctor_get(x_59, 1); +lean_inc(x_81); +lean_dec(x_59); +x_82 = lean_ctor_get(x_60, 0); +lean_inc(x_82); +lean_dec(x_60); +x_83 = lean_box(0); +x_84 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___lambda__1(x_82, x_2, x_83, x_5, x_6, x_7, x_8, x_81); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_82); +return x_84; +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_85 = lean_ctor_get(x_59, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_59, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_87 = x_59; +} else { + lean_dec_ref(x_59); + 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 +{ +uint8_t x_89; lean_object* x_90; +x_89 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_90 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_89, x_4, x_5, x_6, x_7, x_8, x_56); +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); +lean_dec(x_90); +x_93 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_94 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_93, x_91, x_2, x_5, x_6, x_7, x_8, x_92); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_95 = lean_ctor_get(x_90, 0); +lean_inc(x_95); +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_90); + 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; +} } } } @@ -36629,141 +36950,143 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(lean_object* x_1, 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; uint8_t x_9; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = !lean_is_exclusive(x_8); +if (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_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); lean_inc(x_2); -x_8 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +x_13 = l_Lean_wasOriginallyTheorem(x_12, x_2); +if (x_13 == 0) { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -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_ConstantInfo_isTheorem(x_9); -lean_dec(x_9); -if (x_11 == 0) -{ -lean_object* x_12; +lean_object* x_14; lean_dec(x_1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_12 = l_Lean_Meta_getEqnsFor_x3f(x_2, x_3, x_4, x_5, x_6, x_10); -if (lean_obj_tag(x_12) == 0) +x_14 = l_Lean_Meta_getEqnsFor_x3f(x_2, x_3, x_4, x_5, x_6, x_11); +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) { -lean_object* x_14; 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_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_MessageData_ofName(x_2); -x_16 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -x_17 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; -x_19 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_throwError___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__1(x_19, x_3, x_4, x_5, x_6, x_14); +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_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_MessageData_ofName(x_2); +x_18 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +lean_ctor_set_tag(x_8, 7); +lean_ctor_set(x_8, 1, x_17); +lean_ctor_set(x_8, 0, x_18); +x_19 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +x_20 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_throwError___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__1(x_20, 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_20; +return x_21; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_ctor_get(x_12, 1); -lean_inc(x_21); -lean_dec(x_12); -x_22 = lean_ctor_get(x_13, 0); +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_14, 1); lean_inc(x_22); -lean_dec(x_13); -x_23 = lean_st_ref_get(x_6, x_21); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +lean_dec(x_14); +x_23 = lean_ctor_get(x_15, 0); +lean_inc(x_23); +lean_dec(x_15); +x_24 = lean_st_ref_get(x_6, x_22); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 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; 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; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -x_27 = lean_ctor_get(x_25, 0); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 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; 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; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +x_30 = lean_ctor_get(x_29, 1); lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get_uint8(x_30, sizeof(void*)*3); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); lean_dec(x_30); -x_32 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; -x_33 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; -x_34 = l_Lean_ScopedEnvExtension_getState___rarg(x_32, x_33, x_27, x_31); -x_35 = lean_array_get_size(x_22); -x_36 = lean_unsigned_to_nat(0u); -x_37 = lean_nat_dec_lt(x_36, x_35); -if (x_37 == 0) +x_32 = lean_ctor_get_uint8(x_31, sizeof(void*)*3); +lean_dec(x_31); +x_33 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_34 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_35 = l_Lean_ScopedEnvExtension_getState___rarg(x_33, x_34, x_28, x_32); +x_36 = lean_array_get_size(x_23); +x_37 = lean_unsigned_to_nat(0u); +x_38 = lean_nat_dec_lt(x_37, x_36); +if (x_38 == 0) { -lean_object* x_38; lean_object* x_39; -lean_dec(x_35); -lean_free_object(x_23); +lean_object* x_39; lean_object* x_40; +lean_dec(x_36); +lean_free_object(x_24); +lean_free_object(x_8); lean_dec(x_2); -x_38 = lean_box(0); -x_39 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_22, x_34, x_38, x_3, x_4, x_5, x_6, x_26); +x_39 = lean_box(0); +x_40 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_23, x_35, x_39, 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_22); -return x_39; +lean_dec(x_23); +return x_40; } else { -size_t x_40; size_t x_41; uint8_t x_42; -x_40 = 0; -x_41 = lean_usize_of_nat(x_35); -lean_dec(x_35); -lean_inc(x_34); -x_42 = l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(x_34, x_22, x_40, x_41); -if (x_42 == 0) +size_t x_41; size_t x_42; uint8_t x_43; +x_41 = 0; +x_42 = lean_usize_of_nat(x_36); +lean_dec(x_36); +lean_inc(x_35); +x_43 = l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(x_35, x_23, x_41, x_42); +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; -lean_free_object(x_23); +lean_object* x_44; lean_object* x_45; +lean_free_object(x_24); +lean_free_object(x_8); lean_dec(x_2); -x_43 = lean_box(0); -x_44 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_22, x_34, x_43, x_3, x_4, x_5, x_6, x_26); +x_44 = lean_box(0); +x_45 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_23, x_35, x_44, 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_22); -return x_44; +lean_dec(x_23); +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; -lean_dec(x_34); -lean_dec(x_22); -x_45 = l_Lean_MessageData_ofName(x_2); -x_46 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_45); -lean_ctor_set(x_23, 0, x_46); -x_47 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; -x_48 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_48, 0, x_23); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_48, x_3, x_4, x_5, x_6, x_26); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +lean_dec(x_35); +lean_dec(x_23); +x_46 = l_Lean_MessageData_ofName(x_2); +x_47 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +lean_ctor_set_tag(x_24, 7); +lean_ctor_set(x_24, 1, x_46); +lean_ctor_set(x_24, 0, x_47); +x_48 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +lean_ctor_set_tag(x_8, 7); +lean_ctor_set(x_8, 1, x_48); +lean_ctor_set(x_8, 0, x_24); +x_49 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_8, x_3, x_4, x_5, x_6, x_27); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -36792,11 +37115,11 @@ 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; 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; -x_54 = lean_ctor_get(x_23, 0); -x_55 = lean_ctor_get(x_23, 1); +x_54 = lean_ctor_get(x_24, 0); +x_55 = lean_ctor_get(x_24, 1); lean_inc(x_55); lean_inc(x_54); -lean_dec(x_23); +lean_dec(x_24); x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); lean_dec(x_54); @@ -36811,21 +37134,22 @@ lean_dec(x_59); x_61 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; x_62 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; x_63 = l_Lean_ScopedEnvExtension_getState___rarg(x_61, x_62, x_56, x_60); -x_64 = lean_array_get_size(x_22); +x_64 = lean_array_get_size(x_23); x_65 = lean_unsigned_to_nat(0u); x_66 = lean_nat_dec_lt(x_65, x_64); if (x_66 == 0) { lean_object* x_67; lean_object* x_68; lean_dec(x_64); +lean_free_object(x_8); lean_dec(x_2); x_67 = lean_box(0); -x_68 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_22, x_63, x_67, x_3, x_4, x_5, x_6, x_55); +x_68 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_23, x_63, x_67, x_3, x_4, x_5, x_6, x_55); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_22); +lean_dec(x_23); return x_68; } else @@ -36835,59 +37159,60 @@ x_69 = 0; x_70 = lean_usize_of_nat(x_64); lean_dec(x_64); lean_inc(x_63); -x_71 = l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(x_63, x_22, x_69, x_70); +x_71 = l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(x_63, x_23, x_69, x_70); if (x_71 == 0) { lean_object* x_72; lean_object* x_73; +lean_free_object(x_8); lean_dec(x_2); x_72 = lean_box(0); -x_73 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_22, x_63, x_72, x_3, x_4, x_5, x_6, x_55); +x_73 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_23, x_63, x_72, x_3, x_4, x_5, x_6, x_55); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_22); +lean_dec(x_23); 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_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_dec(x_63); -lean_dec(x_22); +lean_dec(x_23); x_74 = l_Lean_MessageData_ofName(x_2); x_75 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; x_76 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_74); x_77 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; -x_78 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_78, x_3, x_4, x_5, x_6, x_55); +lean_ctor_set_tag(x_8, 7); +lean_ctor_set(x_8, 1, x_77); +lean_ctor_set(x_8, 0, x_76); +x_78 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_8, x_3, x_4, x_5, x_6, x_55); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_80 = lean_ctor_get(x_79, 0); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); 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; +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_79); - x_82 = lean_box(0); + lean_dec_ref(x_78); + x_81 = lean_box(0); } -if (lean_is_scalar(x_82)) { - x_83 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); } else { - x_83 = x_82; + x_82 = x_81; } -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +return x_82; } } } @@ -36895,217 +37220,489 @@ return x_83; } else { -uint8_t x_84; +uint8_t x_83; +lean_free_object(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_is_exclusive(x_12); -if (x_84 == 0) +x_83 = !lean_is_exclusive(x_14); +if (x_83 == 0) { -return x_12; +return x_14; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_12, 0); -x_86 = lean_ctor_get(x_12, 1); -lean_inc(x_86); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_14, 0); +x_85 = lean_ctor_get(x_14, 1); lean_inc(x_85); -lean_dec(x_12); -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_inc(x_84); +lean_dec(x_14); +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_88; uint8_t x_89; -x_88 = lean_st_ref_get(x_6, x_10); -x_89 = !lean_is_exclusive(x_88); -if (x_89 == 0) +lean_object* x_87; uint8_t x_88; +x_87 = lean_st_ref_get(x_6, x_11); +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 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; uint8_t 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_ctor_get(x_90, 0); -lean_inc(x_92); -lean_dec(x_90); -x_93 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; -x_94 = lean_ctor_get(x_93, 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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_89 = lean_ctor_get(x_87, 0); +x_90 = lean_ctor_get(x_87, 1); +x_91 = lean_ctor_get(x_89, 0); +lean_inc(x_91); +lean_dec(x_89); +x_92 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); +lean_dec(x_93); +x_95 = lean_ctor_get_uint8(x_94, sizeof(void*)*3); lean_dec(x_94); -x_96 = lean_ctor_get_uint8(x_95, sizeof(void*)*3); -lean_dec(x_95); -x_97 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; -x_98 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; -x_99 = l_Lean_ScopedEnvExtension_getState___rarg(x_97, x_98, x_92, x_96); +x_96 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_97 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_98 = l_Lean_ScopedEnvExtension_getState___rarg(x_96, x_97, x_91, x_95); lean_inc(x_2); -x_100 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_100, 0, x_2); -x_101 = l_Lean_Meta_Grind_EMatchTheorems_contains(x_99, x_100); -lean_dec(x_100); -if (x_101 == 0) +x_99 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_99, 0, x_2); +x_100 = l_Lean_Meta_Grind_EMatchTheorems_contains(x_98, x_99); +lean_dec(x_99); +if (x_100 == 0) { -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_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_dec(x_1); -x_102 = l_Lean_MessageData_ofName(x_2); -x_103 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -lean_ctor_set_tag(x_88, 7); -lean_ctor_set(x_88, 1, x_102); -lean_ctor_set(x_88, 0, x_103); -x_104 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_88); -lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_105, x_3, x_4, x_5, x_6, x_91); +x_101 = l_Lean_MessageData_ofName(x_2); +x_102 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +lean_ctor_set_tag(x_87, 7); +lean_ctor_set(x_87, 1, x_101); +lean_ctor_set(x_87, 0, x_102); +x_103 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +lean_ctor_set_tag(x_8, 7); +lean_ctor_set(x_8, 1, x_103); +lean_ctor_set(x_8, 0, x_87); +x_104 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_8, x_3, x_4, x_5, x_6, x_90); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) +x_105 = !lean_is_exclusive(x_104); +if (x_105 == 0) { -return x_106; +return x_104; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_106, 0); -x_109 = lean_ctor_get(x_106, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_106); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); +lean_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_107); +lean_inc(x_106); +lean_dec(x_104); +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_109; lean_object* x_110; +lean_free_object(x_87); +lean_free_object(x_8); +x_109 = lean_box(0); +x_110 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__2(x_2, x_1, x_109, x_3, x_4, x_5, x_6, x_90); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); return x_110; } } else { -lean_object* x_111; lean_object* x_112; -lean_free_object(x_88); -x_111 = lean_box(0); -x_112 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__2(x_2, x_1, x_111, x_3, x_4, x_5, x_6, x_91); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_112; -} -} -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; uint8_t x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_113 = lean_ctor_get(x_88, 0); -x_114 = lean_ctor_get(x_88, 1); -lean_inc(x_114); +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; uint8_t x_122; +x_111 = lean_ctor_get(x_87, 0); +x_112 = lean_ctor_get(x_87, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_87); +x_113 = lean_ctor_get(x_111, 0); lean_inc(x_113); -lean_dec(x_88); -x_115 = lean_ctor_get(x_113, 0); +lean_dec(x_111); +x_114 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +x_115 = lean_ctor_get(x_114, 1); lean_inc(x_115); -lean_dec(x_113); -x_116 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -lean_dec(x_117); -x_119 = lean_ctor_get_uint8(x_118, sizeof(void*)*3); -lean_dec(x_118); -x_120 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; -x_121 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; -x_122 = l_Lean_ScopedEnvExtension_getState___rarg(x_120, x_121, x_115, x_119); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +lean_dec(x_115); +x_117 = lean_ctor_get_uint8(x_116, sizeof(void*)*3); +lean_dec(x_116); +x_118 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_119 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_120 = l_Lean_ScopedEnvExtension_getState___rarg(x_118, x_119, x_113, x_117); lean_inc(x_2); -x_123 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_123, 0, x_2); -x_124 = l_Lean_Meta_Grind_EMatchTheorems_contains(x_122, x_123); -lean_dec(x_123); -if (x_124 == 0) +x_121 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_121, 0, x_2); +x_122 = l_Lean_Meta_Grind_EMatchTheorems_contains(x_120, 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; lean_object* x_133; lean_object* x_134; +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_dec(x_1); -x_125 = l_Lean_MessageData_ofName(x_2); -x_126 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -x_127 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -x_128 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; -x_129 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -x_130 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_129, x_3, x_4, x_5, x_6, x_114); +x_123 = l_Lean_MessageData_ofName(x_2); +x_124 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +x_125 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +x_126 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +lean_ctor_set_tag(x_8, 7); +lean_ctor_set(x_8, 1, x_126); +lean_ctor_set(x_8, 0, x_125); +x_127 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_8, x_3, x_4, x_5, x_6, x_112); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -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; +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_130); - x_133 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -if (lean_is_scalar(x_133)) { - x_134 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); } else { - x_134 = x_133; + x_131 = x_130; } -lean_ctor_set(x_134, 0, x_131); -lean_ctor_set(x_134, 1, x_132); -return x_134; +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); +return x_131; } else { -lean_object* x_135; lean_object* x_136; -x_135 = lean_box(0); -x_136 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__2(x_2, x_1, x_135, x_3, x_4, x_5, x_6, x_114); +lean_object* x_132; lean_object* x_133; +lean_free_object(x_8); +x_132 = lean_box(0); +x_133 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__2(x_2, x_1, x_132, x_3, x_4, x_5, x_6, x_112); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_136; +return x_133; } } } } else { -uint8_t x_137; +lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_134 = lean_ctor_get(x_8, 0); +x_135 = lean_ctor_get(x_8, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_8); +x_136 = lean_ctor_get(x_134, 0); +lean_inc(x_136); +lean_dec(x_134); +lean_inc(x_2); +x_137 = l_Lean_wasOriginallyTheorem(x_136, x_2); +if (x_137 == 0) +{ +lean_object* x_138; +lean_dec(x_1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_138 = l_Lean_Meta_getEqnsFor_x3f(x_2, x_3, x_4, x_5, x_6, x_135); +if (lean_obj_tag(x_138) == 0) +{ +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; lean_object* x_145; lean_object* x_146; +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = l_Lean_MessageData_ofName(x_2); +x_142 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +x_143 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +x_145 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +x_146 = l_Lean_throwError___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__1(x_145, x_3, x_4, x_5, x_6, x_140); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +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; lean_object* x_155; lean_object* x_156; uint8_t 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_147 = lean_ctor_get(x_138, 1); +lean_inc(x_147); +lean_dec(x_138); +x_148 = lean_ctor_get(x_139, 0); +lean_inc(x_148); +lean_dec(x_139); +x_149 = lean_st_ref_get(x_6, 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); +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_ctor_get(x_150, 0); +lean_inc(x_153); +lean_dec(x_150); +x_154 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +lean_dec(x_155); +x_157 = lean_ctor_get_uint8(x_156, sizeof(void*)*3); +lean_dec(x_156); +x_158 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_159 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_160 = l_Lean_ScopedEnvExtension_getState___rarg(x_158, x_159, x_153, x_157); +x_161 = lean_array_get_size(x_148); +x_162 = lean_unsigned_to_nat(0u); +x_163 = lean_nat_dec_lt(x_162, x_161); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; +lean_dec(x_161); +lean_dec(x_152); +lean_dec(x_2); +x_164 = lean_box(0); +x_165 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_148, x_160, x_164, x_3, x_4, x_5, x_6, x_151); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_148); +return x_165; +} +else +{ +size_t x_166; size_t x_167; uint8_t x_168; +x_166 = 0; +x_167 = lean_usize_of_nat(x_161); +lean_dec(x_161); +lean_inc(x_160); +x_168 = l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(x_160, x_148, x_166, x_167); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +lean_dec(x_152); +lean_dec(x_2); +x_169 = lean_box(0); +x_170 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1(x_148, x_160, x_169, x_3, x_4, x_5, x_6, x_151); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_148); +return x_170; +} +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; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_160); +lean_dec(x_148); +x_171 = l_Lean_MessageData_ofName(x_2); +x_172 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +if (lean_is_scalar(x_152)) { + x_173 = lean_alloc_ctor(7, 2, 0); +} else { + x_173 = x_152; + lean_ctor_set_tag(x_173, 7); +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +x_174 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +x_175 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +x_176 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_175, x_3, x_4, x_5, x_6, x_151); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +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(1, 2, 0); +} else { + x_180 = x_179; +} +lean_ctor_set(x_180, 0, x_177); +lean_ctor_set(x_180, 1, x_178); +return x_180; +} +} +} +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_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_is_exclusive(x_8); -if (x_137 == 0) -{ -return x_8; +x_181 = lean_ctor_get(x_138, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_138, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_183 = x_138; +} else { + lean_dec_ref(x_138); + x_183 = lean_box(0); +} +if (lean_is_scalar(x_183)) { + x_184 = lean_alloc_ctor(1, 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_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_8, 0); -x_139 = lean_ctor_get(x_8, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_8); -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_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; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; +x_185 = lean_st_ref_get(x_6, x_135); +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_186, 0); +lean_inc(x_189); +lean_dec(x_186); +x_190 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +x_191 = lean_ctor_get(x_190, 1); +lean_inc(x_191); +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_ctor_get_uint8(x_192, sizeof(void*)*3); +lean_dec(x_192); +x_194 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_195 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_196 = l_Lean_ScopedEnvExtension_getState___rarg(x_194, x_195, x_189, x_193); +lean_inc(x_2); +x_197 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_197, 0, x_2); +x_198 = l_Lean_Meta_Grind_EMatchTheorems_contains(x_196, x_197); +lean_dec(x_197); +if (x_198 == 0) +{ +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_dec(x_1); +x_199 = l_Lean_MessageData_ofName(x_2); +x_200 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +if (lean_is_scalar(x_188)) { + x_201 = lean_alloc_ctor(7, 2, 0); +} else { + x_201 = x_188; + lean_ctor_set_tag(x_201, 7); +} +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_199); +x_202 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +x_203 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set(x_203, 1, x_202); +x_204 = l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(x_203, x_3, x_4, x_5, x_6, x_187); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +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); +} +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_object* x_210; +lean_dec(x_188); +x_209 = lean_box(0); +x_210 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__2(x_2, x_1, x_209, x_3, x_4, x_5, x_6, x_187); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_210; +} } } } @@ -37199,184 +37796,166 @@ lean_inc(x_1); x_15 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; uint8_t 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; uint8_t x_22; 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_ConstantInfo_isTheorem(x_16); -if (x_18 == 0) +x_18 = lean_st_ref_get(x_7, 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, 0); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_1); +x_22 = l_Lean_wasOriginallyTheorem(x_21, x_1); +if (x_22 == 0) { -uint8_t x_19; -x_19 = l_Lean_ConstantInfo_isCtor(x_16); -if (x_19 == 0) +uint8_t x_23; +x_23 = l_Lean_ConstantInfo_isCtor(x_16); +if (x_23 == 0) { -uint8_t x_20; -x_20 = l_Lean_ConstantInfo_isAxiom(x_16); +uint8_t x_24; +x_24 = l_Lean_ConstantInfo_isAxiom(x_16); lean_dec(x_16); -if (x_20 == 0) +if (x_24 == 0) { -uint8_t x_21; lean_object* x_22; -x_21 = 1; -x_22 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_21, x_4, x_5, x_6, x_7, x_17); -return x_22; +uint8_t x_25; lean_object* x_26; +x_25 = 1; +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_25, x_4, x_5, x_6, x_7, x_20); +return x_26; } else { -lean_object* x_23; +lean_object* x_27; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_23 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_23) == 0) +x_27 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_20); +if (lean_obj_tag(x_27) == 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 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; -x_27 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_26, x_24, x_2, x_4, x_5, x_6, x_7, x_25); +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 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_31 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_30, x_28, x_2, x_4, x_5, x_6, x_7, x_29); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); +return x_31; +} +else +{ +uint8_t x_32; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) +{ return x_27; } else { -uint8_t x_28; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_28 = !lean_is_exclusive(x_23); -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_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_32; +lean_object* x_36; lean_dec(x_16); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_32 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_32) == 0) +x_36 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_20); +if (lean_obj_tag(x_36) == 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_Meta_Grind_isEMatchTheorem___closed__1; -x_36 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_35, x_33, x_2, x_4, x_5, x_6, x_7, x_34); +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); +lean_dec(x_36); +x_39 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_40 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_39, x_37, x_2, x_4, x_5, x_6, x_7, x_38); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); +return x_40; +} +else +{ +uint8_t x_41; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_41 = !lean_is_exclusive(x_36); +if (x_41 == 0) +{ return x_36; } else { -uint8_t x_37; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_37 = !lean_is_exclusive(x_32); -if (x_37 == 0) -{ -return x_32; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_32, 0); -x_39 = lean_ctor_get(x_32, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_32); -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_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_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; } } } } else { -lean_object* x_41; +lean_object* x_45; lean_dec(x_16); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_41 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_41) == 0) +x_45 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_20); +if (lean_obj_tag(x_45) == 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_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; -x_45 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_44, x_42, x_2, x_4, x_5, x_6, x_7, x_43); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -return x_45; -} -else -{ -uint8_t x_46; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -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_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); -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); +lean_dec(x_45); +x_48 = l_Lean_Meta_Grind_isEMatchTheorem___closed__1; +x_49 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_48, x_46, x_2, x_4, x_5, x_6, x_7, x_47); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); return x_49; } -} -} -} else { uint8_t x_50; @@ -37384,20 +37963,19 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_1); -x_50 = !lean_is_exclusive(x_15); +x_50 = !lean_is_exclusive(x_45); if (x_50 == 0) { -return x_15; +return x_45; } else { lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_15, 0); -x_52 = lean_ctor_get(x_15, 1); +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_dec(x_15); +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); @@ -37405,72 +37983,101 @@ return x_53; } } } -else -{ -uint8_t x_54; lean_object* x_55; -x_54 = 1; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_55 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_54, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; uint8_t x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = 0; -x_58 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_57, x_4, x_5, x_6, x_7, x_56); -return x_58; } else { -uint8_t x_59; +uint8_t x_54; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_55); -if (x_59 == 0) +x_54 = !lean_is_exclusive(x_15); +if (x_54 == 0) { -return x_55; +return x_15; } else { -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_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_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; +} +} +} +else +{ +uint8_t x_58; lean_object* x_59; +x_58 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_59 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_58, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; uint8_t x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 1); 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); +lean_dec(x_59); +x_61 = 0; +x_62 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_61, x_4, x_5, x_6, x_7, x_60); return x_62; } -} -} +else +{ +uint8_t x_63; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_63 = !lean_is_exclusive(x_59); +if (x_63 == 0) +{ +return x_59; } else { -uint8_t x_63; lean_object* x_64; -x_63 = 0; -x_64 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_63, x_4, x_5, x_6, x_7, x_8); -return x_64; -} -} -else -{ -uint8_t x_65; lean_object* x_66; -x_65 = 1; -x_66 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_65, x_4, x_5, x_6, x_7, x_8); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_59, 0); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_59); +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_object* x_68; +x_67 = 0; +x_68 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_67, x_4, x_5, x_6, x_7, x_8); +return x_68; +} +} +else +{ +uint8_t x_69; lean_object* x_70; +x_69 = 1; +x_70 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_69, x_4, x_5, x_6, x_7, x_8); +return x_70; +} +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr___boxed(lean_object* x_1, lean_object* x_2, 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: { diff --git a/stage0/stdlib/Lean/Server/Completion/CompletionCollectors.c b/stage0/stdlib/Lean/Server/Completion/CompletionCollectors.c index 19c2bcac9e..c58f0c9799 100644 --- a/stage0/stdlib/Lean/Server/Completion/CompletionCollectors.c +++ b/stage0/stdlib/Lean/Server/Completion/CompletionCollectors.c @@ -188,7 +188,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Completion_tact LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_normPrivateName_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Server_Completion_optionCompletion___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_Completion_dotIdCompletion___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*); -uint8_t l_Lean_ConstantInfo_isTheorem(lean_object*); static lean_object* l_List_forIn_x27_loop___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_idCompletionCore___spec__22___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Completion_forEligibleDeclsM___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_forEligibleDeclsWithCancellationM___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -494,6 +493,7 @@ lean_object* l_Lean_Expr_consumeMData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_forEligibleDeclsWithCancellationM___rarg___lambda__8___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_forEligibleDeclsWithCancellationM___rarg___lambda__4___closed__1; uint8_t l_Lean_Name_isInternal(lean_object*); +uint8_t l_Lean_wasOriginallyTheorem(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forM___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_idCompletionCore___spec__25(lean_object*, 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_Completion_dotIdCompletion___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*); @@ -1682,15 +1682,15 @@ uint8_t x_16; x_16 = l_Lean_ConstantInfo_isInductive(x_1); if (x_16 == 0) { -uint8_t x_17; -lean_dec(x_14); -x_17 = l_Lean_ConstantInfo_isTheorem(x_1); -if (x_17 == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_ConstantInfo_name(x_1); +lean_inc(x_17); +x_18 = l_Lean_wasOriginallyTheorem(x_14, x_17); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_free_object(x_10); -x_18 = l_Lean_ConstantInfo_name(x_1); -x_19 = l_Lean_isProjectionFn___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_getCompletionKindForDecl___spec__1(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_19 = l_Lean_isProjectionFn___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_getCompletionKindForDecl___spec__1(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_20, 0); @@ -1944,6 +1944,7 @@ return x_79; else { lean_object* x_80; +lean_dec(x_17); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2099,14 +2100,14 @@ uint8_t x_109; x_109 = l_Lean_ConstantInfo_isInductive(x_1); if (x_109 == 0) { -uint8_t x_110; -lean_dec(x_107); -x_110 = l_Lean_ConstantInfo_isTheorem(x_1); -if (x_110 == 0) +lean_object* x_110; uint8_t x_111; +x_110 = l_Lean_ConstantInfo_name(x_1); +lean_inc(x_110); +x_111 = l_Lean_wasOriginallyTheorem(x_107, x_110); +if (x_111 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_111 = l_Lean_ConstantInfo_name(x_1); -x_112 = l_Lean_isProjectionFn___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_getCompletionKindForDecl___spec__1(x_111, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_112 = l_Lean_isProjectionFn___at___private_Lean_Server_Completion_CompletionCollectors_0__Lean_Server_Completion_getCompletionKindForDecl___spec__1(x_110, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); x_114 = lean_ctor_get(x_113, 0); @@ -2288,6 +2289,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; +lean_dec(x_110); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 5f6059224b..909f005192 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -30,7 +30,6 @@ lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcConnectParam static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__1; static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__1___closed__1; static lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler___rarg___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6(size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_handleOnDidChange(lean_object*, lean_object*, lean_object*); lean_object* lean_io_cancel(lean_object*, lean_object*); @@ -45,13 +44,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileW lean_object* l_Lean_Option_set___at_Lean_Environment_realizeConst___spec__3(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Json_toStructured_x3f___rarg(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__12; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_runRefreshTasks___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_2764_(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__30; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5___boxed(lean_object*); lean_object* l_IO_throwServerError___rarg(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__10; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_initializeWorker___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,11 +61,9 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_server_reportDelayMs; LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__43; static lean_object* l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__2; -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__3; static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__3___closed__2; LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_FileWorker_RpcSession_keepAliveTimeMs; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonLeanFileProgressParams____x40_Lean_Data_Lsp_Extra___hyg_1231_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,7 +72,6 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcConnect___boxed(lean_ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__4___lambda__5(lean_object*, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__3; LEAN_EXPORT lean_object* l_Lean_RBNode_del___at_Lean_Server_FileWorker_mainLoop___spec__3___boxed(lean_object*, lean_object*); @@ -98,11 +93,11 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_F static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__5___closed__5; LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Server_FileWorker_handleRpcConnect___spec__2(lean_object*, uint64_t, lean_object*); lean_object* lean_io_promise_new(lean_object*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__11; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_initializeWorker___spec__5___at_Lean_Server_FileWorker_initializeWorker___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__8; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__51; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_FileWorker_initializeWorker___spec__3(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -114,7 +109,6 @@ static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___ lean_object* l_Lean_Widget_InteractiveDiagnostic_toDiagnostic(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); static lean_object* l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__1___closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*); @@ -136,6 +130,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorke LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_FileWorker_importAllUnknownIdentifiersProvider; uint8_t lean_uint64_dec_lt(uint64_t, uint64_t); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__9; uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__35; static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lambda__5___closed__2; @@ -178,8 +173,8 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__5; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__19; lean_object* l_Lean_Server_FileWorker_waitUnknownIdentifierRanges(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__40; -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedJson; lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -187,10 +182,11 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendUntypedServerRequest(lean_ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__53; static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__6; lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__37; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_IO_Promise_isResolved___rarg(lean_object*, lean_object*); +lean_object* l_Prod_map___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Server_FileWorker_mainLoop___spec__2___boxed(lean_object*, lean_object*); @@ -228,7 +224,7 @@ lean_object* l_Lean_Server_RequestCancellationToken_cancelByEdit(lean_object*, l LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation___lambda__2___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_mkPublishDiagnosticsNotification(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_mainLoop(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkIleanInfoNotification___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,7 +260,6 @@ lean_object* l___private_Lean_Data_Lsp_CodeActions_0__Lean_Lsp_toJsonCodeAction_ lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*); lean_object* lean_io_promise_resolve(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_753_(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyPartialHandler(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -278,7 +273,6 @@ static lean_object* l_Array_qsort_sort___at___private_Lean_Server_FileWorker_0__ uint8_t lean_string_dec_lt(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*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__12; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_552____spec__1(lean_object*, lean_object*); lean_object* lean_io_mono_ms_now(lean_object*); @@ -287,6 +281,7 @@ lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcKeepAlivePar LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCancelRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleImportCompletionRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkIleanInfoFinalNotification___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__12; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonCompletionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2953_(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__14; @@ -294,6 +289,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_i lean_object* l_Lean_RBNode_appendTrees___rarg(lean_object*, lean_object*); uint8_t l_instDecidableNot___rarg(uint8_t); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__36; +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__2; static lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_runRefreshTasks___spec__2___rarg___closed__1; static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkImportClosureNotification___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -320,6 +316,7 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*); lean_object* lean_nat_to_int(lean_object*); +static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1; lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_handleCodeActionResolve___spec__1(lean_object*, lean_object*, lean_object*); uint32_t lean_uint32_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleResponseError(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -329,7 +326,6 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Server_FileWorker_Worker lean_object* l_IO_FS_Stream_readLspMessage(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_initializeWorker___spec__5___at_Lean_Server_FileWorker_initializeWorker___spec__6(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkIleanInfoUpdateNotification(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updatePendingRequests(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -341,7 +337,6 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Server_FileWorker_hand LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__47; static lean_object* l_Lean_Server_FileWorker_initializeWorker___lambda__1___closed__1; -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__5; lean_object* l_Lean_Server_FileWorker_RpcSession_keptAlive(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_queueRequest___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -357,7 +352,6 @@ lean_object* l___private_Lean_Data_Lsp_CancelParams_0__Lean_Lsp_fromJsonCancelPa static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__13; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initializeWorker___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases___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_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleRpcRelease___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps(lean_object*); lean_object* l_Lean_Server_mkFileProgressAtPosNotification(lean_object*, lean_object*, uint8_t); @@ -365,6 +359,7 @@ static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefres static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__38; lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____spec__3(size_t, size_t, lean_object*, lean_object*); lean_object* l_String_crlfToLf_go(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__3; extern lean_object* l_Lean_Elab_async; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); lean_object* l_IO_sleep(uint32_t, lean_object*); @@ -391,7 +386,6 @@ static lean_object* l_Lean_Server_FileWorker_mainLoop___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__6(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__5(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_initializeWorker___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__59; lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*); lean_object* l_Lean_Server_ServerTask_BaseIO_asTask___rarg(lean_object*, lean_object*); @@ -408,7 +402,6 @@ static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__3___closed__ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleImportCompletionRequest___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_mapRequestTaskCostly___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_find___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__1(lean_object*, uint64_t); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__5___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_resolveServerRequestResponse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_mainLoop___closed__2; static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__4___lambda__7___closed__2; @@ -420,7 +413,6 @@ lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, le LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Server_FileWorker_queueRequest___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__32; lean_object* lean_get_stderr(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__45; static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_753____closed__8; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__1(lean_object*); @@ -429,21 +421,21 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileW lean_object* l_Lean_Language_diagnosticsOfHeaderError(lean_object*, lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics___spec__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__5(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__5___closed__7; uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__9; lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____spec__1(size_t, size_t, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__70; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__3(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(lean_object*, size_t, size_t, lean_object*); 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___at_Lean_Server_FileWorker_sendUntypedServerRequest___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MessageLog_hasUnreported(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Server_FileWorker_handleDidChange___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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_runRefreshTasks(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__1; lean_object* l_Lean_Server_RequestCancellationToken_cancelByCancelRequest(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcRelease(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_updateRequestsInFlight(lean_object*, lean_object*, lean_object*, lean_object*); @@ -460,6 +452,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lambda__6___box lean_object* lean_get_set_stderr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDidChange(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__3; +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__5; lean_object* l___private_Lean_Data_Lsp_Internal_0__Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2105_(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__44; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -477,13 +470,10 @@ LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Server_FileWorker_runR LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_instRpcEncodableMsgEmbed_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_570____spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__5___closed__6; -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__10; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___closed__1; static lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest___at_Lean_Server_FileWorker_sendUntypedServerRequest___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___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_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__27; static lean_object* l_Lean_Server_FileWorker_handleRequest___closed__1; lean_object* l_String_Range_toLspRange(lean_object*, lean_object*); @@ -510,7 +500,6 @@ static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__5; static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__1; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__5; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readMessage(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_instRpcEncodableArray___spec__2(size_t, size_t, lean_object*); @@ -550,7 +539,6 @@ lean_object* l_Lean_Server_FileWorker_RpcSession_hasExpired(lean_object*, lean_o static lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Server_FileWorker_handleCancelRequest___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonLeanDidOpenTextDocumentParams____x40_Lean_Data_Lsp_Extra___hyg_203_(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Task_Priority_dedicated; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_sendUntypedServerRequest___spec__2(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__26; @@ -570,6 +558,7 @@ static lean_object* l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__ lean_object* l_Std_DTreeMap_Internal_Impl_maxView___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__5___closed__8; static lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_FileWorker_runRefreshTasks___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleImportCompletionRequest___closed__1; static lean_object* l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__1; @@ -594,6 +583,7 @@ lean_object* l_Lean_Server_foldDocumentChanges(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_instImpl____x40_Lean_Server_FileWorker___hyg_804_; static lean_object* l_Lean_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__5; uint8_t lean_int_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__4___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -602,12 +592,10 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcConnect(lean_object*, static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__2; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__5___closed__1; uint8_t l_Lean_RBNode_isBlack___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_initializeWorker___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Server_RequestCancellationToken_new(lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_minView___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker_mkLspOutputChannel___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getNat_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation___lambda__1___boxed(lean_object*, lean_object*); @@ -639,13 +627,14 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_Server_FileWorker_WorkerContext_modif static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__6___closed__2; lean_object* l_Lean_Option_setIfNotSet___at_Lean_Language_Lean_process_processHeader___spec__2(lean_object*, lean_object*, uint8_t); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__29; -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__4; lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lambda__6(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler___rarg___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____spec__2(size_t, size_t, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__28; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Server_FileWorker_handleRpcConnect___spec__1(lean_object*, uint64_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyPartialHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -676,6 +665,7 @@ 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; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics___spec__2(lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__6; lean_object* lean_io_error_to_string(lean_object*); static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_753____closed__3; static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics___closed__2; @@ -691,30 +681,29 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcConnect___rarg___boxe LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___rarg___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__56; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks___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_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__13; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_inServer; LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Server_FileWorker_mainLoop___spec__2(uint64_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Server_FileWorker_mainLoop___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleImportCompletionRequest___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_Server_mkFileProgressDoneNotification(lean_object*); lean_object* l_Lean_Server_moduleFromDocumentUri(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_runRefreshTasks___spec__2___boxed(lean_object*); -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__8; 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*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePostRequestSpecialCases___spec__1(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_runRefreshTasks___spec__2___rarg___lambda__1___closed__1; static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__6___closed__1; @@ -726,6 +715,7 @@ static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorke static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__2; lean_object* l_Lean_Server_FileWorker_handleResolveImportAllUnknownIdentifiersCodeAction_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__65; +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__13; lean_object* l_Lean_Widget_msgToInteractiveDiagnostic(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4___closed__1; @@ -737,28 +727,30 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object*, LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler(lean_object*); static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics___spec__1(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__6(lean_object*, lean_object*); lean_object* l_ImportCompletion_find(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_runRefreshTasks___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_Loop_forIn_loop___at_Lean_Server_FileWorker_runRefreshTasks___spec__4___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_initFn____x40_Lean_Server_CodeActions_Basic___hyg_1213____spec__4(size_t, size_t, lean_object*); lean_object* l___private_Lean_Data_Lsp_Communication_0__IO_FS_Stream_readLspHeader(lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__7; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Server_FileWorker_handleRpcConnect___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_753____closed__4; static lean_object* l_Lean_Server_FileWorker_setupImports___closed__1; -static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__6; LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_runRefreshTasks___spec__2___rarg___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__4(size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse_emitResponse(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__4; static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks___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___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_importsLoadedRef; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__4(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2(lean_object*); static lean_object* l_Lean_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__54; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at_Lean_Server_FileWorker_sendUntypedServerRequest___spec__2___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonRpcConnected____x40_Lean_Data_Lsp_Extra___hyg_2176_(uint64_t); @@ -766,6 +758,8 @@ lean_object* l_Lean_Widget_TaggedText_stripTags___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_handleLspRequest(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_instImpl____x40_Lean_Server_FileWorker___hyg_804____closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkImportClosureNotification(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -784,6 +778,7 @@ lean_object* l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___rarg(lean_object* LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkIleanInfoUpdateNotification___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Server_FileWorker_handleCancelRequest___spec__1(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_2716_(lean_object*); static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedPartialHandlerInfo___closed__1() { _start: { @@ -15358,19 +15353,16 @@ 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; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = lean_ctor_get(x_5, 0); -lean_inc(x_8); -lean_dec(x_5); -x_9 = l_Lean_Widget_InteractiveDiagnostic_toDiagnostic(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; +x_8 = l_Lean_Widget_InteractiveDiagnostic_toDiagnostic(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; } } @@ -16347,77 +16339,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = lean_usize_dec_lt(x_2, x_1); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_3); -lean_ctor_set(x_7, 1, x_4); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_5); -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_array_uget(x_3, x_2); -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_array_uset(x_3, x_2, x_10); -x_12 = lean_io_promise_new(x_5); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; -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_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_9); -lean_ctor_set(x_15, 1, x_13); -x_16 = 1; -x_17 = lean_usize_add(x_2, x_16); -x_18 = lean_array_uset(x_11, x_2, x_15); -x_2 = x_17; -x_3 = x_18; -x_5 = x_14; -goto _start; -} -else -{ -uint8_t x_20; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_4); -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 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_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; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -17018,12 +16940,15 @@ return x_6; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___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) { _start: { -size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; lean_object* x_17; +size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; x_9 = lean_array_size(x_5); x_10 = 0; x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__2(x_1, x_2, x_9, x_10, x_5, x_7, x_8); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); @@ -17032,231 +16957,188 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); -x_16 = lean_array_size(x_14); -x_17 = l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(x_16, x_10, x_14, x_15, x_13); -if (lean_obj_tag(x_17) == 0) +x_16 = lean_apply_3(x_3, x_14, x_15, x_13); +return x_16; +} +else { -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(x_4) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec(x_11); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ctor_get(x_18, 0); +uint8_t x_19; +x_19 = !lean_is_exclusive(x_4); +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_12, 0); +x_21 = lean_ctor_get(x_12, 1); +x_22 = lean_ctor_get(x_4, 0); +x_23 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_apply_3(x_3, x_20, x_21, x_19); -return x_22; +lean_ctor_set(x_12, 1, x_20); +lean_ctor_set(x_12, 0, x_23); +lean_ctor_set(x_4, 0, x_12); +x_24 = lean_st_ref_set(x_22, x_4, x_17); +lean_dec(x_22); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_apply_3(x_3, x_20, x_21, x_25); +return x_26; } else { -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_17, 1); -lean_inc(x_23); -lean_dec(x_17); -x_24 = !lean_is_exclusive(x_18); -if (x_24 == 0) -{ -uint8_t x_25; -x_25 = !lean_is_exclusive(x_4); -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_18, 0); -x_27 = lean_ctor_get(x_18, 1); -x_28 = lean_ctor_get(x_4, 0); -x_29 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; -lean_inc(x_26); -lean_ctor_set(x_18, 1, x_26); -lean_ctor_set(x_18, 0, x_29); -lean_ctor_set(x_4, 0, x_18); -x_30 = lean_st_ref_set(x_28, x_4, x_23); -lean_dec(x_28); -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 = lean_apply_3(x_3, x_26, x_27, x_31); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_27); -lean_dec(x_26); +uint8_t x_27; +lean_dec(x_21); +lean_dec(x_20); lean_dec(x_3); -x_33 = !lean_is_exclusive(x_30); -if (x_33 == 0) +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) { +return x_24; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_24, 0); +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_24); +x_30 = lean_alloc_ctor(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_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_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_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_18, 0); -x_38 = lean_ctor_get(x_18, 1); -x_39 = lean_ctor_get(x_4, 0); -lean_inc(x_39); +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_12, 0); +x_32 = lean_ctor_get(x_12, 1); +x_33 = lean_ctor_get(x_4, 0); +lean_inc(x_33); lean_dec(x_4); -x_40 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +x_34 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +lean_inc(x_31); +lean_ctor_set(x_12, 1, x_31); +lean_ctor_set(x_12, 0, x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_12); +x_36 = lean_st_ref_set(x_33, x_35, x_17); +lean_dec(x_33); +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_ctor_set(x_18, 1, x_37); -lean_ctor_set(x_18, 0, x_40); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_18); -x_42 = lean_st_ref_set(x_39, x_41, x_23); -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); -lean_dec(x_42); -x_44 = lean_apply_3(x_3, x_37, x_38, x_43); -return x_44; +lean_dec(x_36); +x_38 = lean_apply_3(x_3, x_31, x_32, x_37); +return x_38; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_38); -lean_dec(x_37); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_32); +lean_dec(x_31); lean_dec(x_3); -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; +x_39 = lean_ctor_get(x_36, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_41 = x_36; } else { - lean_dec_ref(x_42); - x_47 = lean_box(0); + lean_dec_ref(x_36); + x_41 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_42 = x_41; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; } } } 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_18, 0); -x_50 = lean_ctor_get(x_18, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_18); -x_51 = lean_ctor_get(x_4, 0); -lean_inc(x_51); +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_12, 0); +x_44 = lean_ctor_get(x_12, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_12); +x_45 = lean_ctor_get(x_4, 0); +lean_inc(x_45); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); - x_52 = x_4; + x_46 = x_4; } else { lean_dec_ref(x_4); - x_52 = lean_box(0); + x_46 = 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); +x_47 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +lean_inc(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_43); +if (lean_is_scalar(x_46)) { + x_49 = lean_alloc_ctor(1, 1, 0); } else { - x_55 = x_52; + x_49 = x_46; } -lean_ctor_set(x_55, 0, x_54); -x_56 = lean_st_ref_set(x_51, x_55, x_23); -lean_dec(x_51); -if (lean_obj_tag(x_56) == 0) +lean_ctor_set(x_49, 0, x_48); +x_50 = lean_st_ref_set(x_45, x_49, x_17); +lean_dec(x_45); +if (lean_obj_tag(x_50) == 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 = lean_apply_3(x_3, x_49, x_50, 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_51; lean_object* x_52; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); lean_dec(x_50); -lean_dec(x_49); -lean_dec(x_3); -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; -} -} -} +x_52 = lean_apply_3(x_3, x_43, x_44, x_51); +return x_52; } else { -uint8_t x_63; -lean_dec(x_4); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_44); +lean_dec(x_43); lean_dec(x_3); -x_63 = !lean_is_exclusive(x_17); -if (x_63 == 0) -{ -return x_17; +x_53 = lean_ctor_get(x_50, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_50, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_55 = x_50; +} else { + lean_dec_ref(x_50); + 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_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_17, 0); -x_65 = lean_ctor_get(x_17, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_17); -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; } } } @@ -17453,7 +17335,7 @@ x_33 = 0; x_34 = lean_usize_of_nat(x_23); lean_dec(x_23); x_35 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_36 = l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__4(x_19, x_33, x_34, x_35); +x_36 = l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(x_19, x_33, x_34, x_35); lean_dec(x_19); x_37 = lean_box(0); x_38 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___lambda__5(x_1, x_2, x_13, x_14, x_36, x_37, x_18, x_16); @@ -17507,19 +17389,7 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___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; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_7 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(x_6, x_7, x_3, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -17527,7 +17397,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___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__4(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___spec__3(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } @@ -21258,7 +21128,7 @@ lean_dec(x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_2764_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_2716_(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -26026,33 +25896,30 @@ uint8_t x_6; x_6 = lean_usize_dec_eq(x_3, x_4); if (x_6 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; size_t x_13; size_t x_14; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; size_t x_12; size_t x_13; x_7 = lean_array_uget(x_2, x_3); -x_8 = lean_ctor_get(x_7, 0); +x_8 = lean_ctor_get(x_7, 6); lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 6); -lean_inc(x_9); -lean_dec(x_8); -x_10 = l_Lean_Widget_TaggedText_stripTags___rarg(x_9); +x_9 = l_Lean_Widget_TaggedText_stripTags___rarg(x_8); lean_inc(x_1); -x_11 = l_Lean_Widget_TaggedText_stripTags___rarg(x_1); -x_12 = lean_string_dec_eq(x_10, x_11); -lean_dec(x_11); +x_10 = l_Lean_Widget_TaggedText_stripTags___rarg(x_1); +x_11 = lean_string_dec_eq(x_9, x_10); lean_dec(x_10); -x_13 = 1; -x_14 = lean_usize_add(x_3, x_13); -if (x_12 == 0) +lean_dec(x_9); +x_12 = 1; +x_13 = lean_usize_add(x_3, x_12); +if (x_11 == 0) { -lean_object* x_15; -x_15 = lean_array_push(x_5, x_7); -x_3 = x_14; -x_5 = x_15; +lean_object* x_14; +x_14 = lean_array_push(x_5, x_7); +x_3 = x_13; +x_5 = x_14; goto _start; } else { lean_dec(x_7); -x_3 = x_14; +x_3 = x_13; goto _start; } } @@ -26089,7 +25956,7 @@ x_4 = lean_st_ref_get(x_2, x_3); x_5 = !lean_is_exclusive(x_4); 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_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_17; lean_object* x_18; 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; uint8_t x_35; x_6 = lean_ctor_get(x_4, 0); x_7 = lean_ctor_get(x_4, 1); x_8 = lean_ctor_get(x_6, 0); @@ -26103,210 +25970,97 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_17, 3); lean_inc(x_18); lean_dec(x_17); -x_19 = lean_io_promise_new(x_7); -x_20 = !lean_is_exclusive(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_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_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); -x_23 = lean_ctor_get(x_18, 0); -lean_inc(x_23); -x_24 = lean_string_utf8_byte_size(x_23); -lean_dec(x_23); -x_25 = l_Lean_FileMap_utf8PosToLspPos(x_18, x_24); -lean_dec(x_24); -x_26 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__1; -lean_ctor_set(x_19, 1, x_25); -lean_ctor_set(x_19, 0, x_26); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_19); -x_28 = lean_box(0); -x_29 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__3; -x_30 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__4; -x_31 = l_Lean_Server_FileWorker_handleStaleDependency___rarg___closed__2; -x_32 = lean_alloc_ctor(0, 11, 0); -lean_ctor_set(x_32, 0, x_29); -lean_ctor_set(x_32, 1, x_27); -lean_ctor_set(x_32, 2, x_30); -lean_ctor_set(x_32, 3, x_28); -lean_ctor_set(x_32, 4, x_28); -lean_ctor_set(x_32, 5, x_28); -lean_ctor_set(x_32, 6, x_31); -lean_ctor_set(x_32, 7, x_28); -lean_ctor_set(x_32, 8, x_28); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_28); -lean_ctor_set(x_4, 1, x_21); -lean_ctor_set(x_4, 0, x_32); -x_33 = lean_ctor_get(x_1, 3); -lean_inc(x_33); -x_34 = lean_st_ref_take(x_33, x_22); -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_array_get_size(x_35); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_nat_dec_lt(x_38, x_37); -if (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_35); -x_40 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_41 = lean_array_push(x_40, x_4); -x_42 = lean_st_ref_set(x_33, x_41, x_36); -lean_dec(x_33); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_10 = x_43; -goto block_16; -} -else -{ -uint8_t x_44; -x_44 = lean_nat_dec_le(x_37, x_37); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_37); -lean_dec(x_35); -x_45 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_46 = lean_array_push(x_45, x_4); -x_47 = lean_st_ref_set(x_33, x_46, x_36); -lean_dec(x_33); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_10 = x_48; -goto block_16; -} -else -{ -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_55; -x_49 = 0; -x_50 = lean_usize_of_nat(x_37); -lean_dec(x_37); -x_51 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_52 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1(x_31, x_35, x_49, x_50, x_51); -lean_dec(x_35); -x_53 = lean_array_push(x_52, x_4); -x_54 = lean_st_ref_set(x_33, x_53, x_36); -lean_dec(x_33); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_10 = x_55; -goto block_16; -} -} -} -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; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_56 = lean_ctor_get(x_19, 0); -x_57 = lean_ctor_get(x_19, 1); -lean_inc(x_57); -lean_inc(x_56); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_string_utf8_byte_size(x_19); lean_dec(x_19); -x_58 = lean_ctor_get(x_18, 0); -lean_inc(x_58); -x_59 = lean_string_utf8_byte_size(x_58); -lean_dec(x_58); -x_60 = l_Lean_FileMap_utf8PosToLspPos(x_18, x_59); -lean_dec(x_59); -x_61 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__1; -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_box(0); -x_65 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__3; -x_66 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__4; -x_67 = l_Lean_Server_FileWorker_handleStaleDependency___rarg___closed__2; -x_68 = lean_alloc_ctor(0, 11, 0); -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_63); -lean_ctor_set(x_68, 2, x_66); -lean_ctor_set(x_68, 3, x_64); -lean_ctor_set(x_68, 4, x_64); -lean_ctor_set(x_68, 5, x_64); -lean_ctor_set(x_68, 6, x_67); -lean_ctor_set(x_68, 7, x_64); -lean_ctor_set(x_68, 8, x_64); -lean_ctor_set(x_68, 9, x_64); -lean_ctor_set(x_68, 10, x_64); -lean_ctor_set(x_4, 1, x_56); -lean_ctor_set(x_4, 0, x_68); -x_69 = lean_ctor_get(x_1, 3); -lean_inc(x_69); -x_70 = lean_st_ref_take(x_69, x_57); -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_71); -x_74 = lean_unsigned_to_nat(0u); -x_75 = lean_nat_dec_lt(x_74, x_73); -if (x_75 == 0) +x_21 = l_Lean_FileMap_utf8PosToLspPos(x_18, x_20); +lean_dec(x_20); +x_22 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__1; +lean_ctor_set(x_4, 1, x_21); +lean_ctor_set(x_4, 0, x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_4); +x_24 = lean_box(0); +x_25 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__3; +x_26 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__4; +x_27 = l_Lean_Server_FileWorker_handleStaleDependency___rarg___closed__2; +x_28 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_26); +lean_ctor_set(x_28, 3, x_24); +lean_ctor_set(x_28, 4, x_24); +lean_ctor_set(x_28, 5, x_24); +lean_ctor_set(x_28, 6, x_27); +lean_ctor_set(x_28, 7, x_24); +lean_ctor_set(x_28, 8, x_24); +lean_ctor_set(x_28, 9, x_24); +lean_ctor_set(x_28, 10, x_24); +x_29 = lean_ctor_get(x_1, 3); +lean_inc(x_29); +x_30 = lean_st_ref_take(x_29, x_7); +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_31); +x_34 = lean_unsigned_to_nat(0u); +x_35 = lean_nat_dec_lt(x_34, x_33); +if (x_35 == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_dec(x_73); -lean_dec(x_71); -x_76 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_77 = lean_array_push(x_76, x_4); -x_78 = lean_st_ref_set(x_69, x_77, x_72); -lean_dec(x_69); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec(x_78); -x_10 = x_79; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_33); +lean_dec(x_31); +x_36 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_37 = lean_array_push(x_36, x_28); +x_38 = lean_st_ref_set(x_29, x_37, x_32); +lean_dec(x_29); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_10 = x_39; goto block_16; } else { -uint8_t x_80; -x_80 = lean_nat_dec_le(x_73, x_73); -if (x_80 == 0) +uint8_t x_40; +x_40 = lean_nat_dec_le(x_33, x_33); +if (x_40 == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_73); -lean_dec(x_71); -x_81 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_82 = lean_array_push(x_81, x_4); -x_83 = lean_st_ref_set(x_69, x_82, x_72); -lean_dec(x_69); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_10 = x_84; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_33); +lean_dec(x_31); +x_41 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_42 = lean_array_push(x_41, x_28); +x_43 = lean_st_ref_set(x_29, x_42, x_32); +lean_dec(x_29); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_10 = x_44; goto block_16; } else { -size_t x_85; size_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_85 = 0; -x_86 = lean_usize_of_nat(x_73); -lean_dec(x_73); -x_87 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_88 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1(x_67, x_71, x_85, x_86, x_87); -lean_dec(x_71); -x_89 = lean_array_push(x_88, x_4); -x_90 = lean_st_ref_set(x_69, x_89, x_72); -lean_dec(x_69); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_10 = x_91; +size_t x_45; size_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_45 = 0; +x_46 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_47 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_48 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1(x_27, x_31, x_45, x_46, x_47); +lean_dec(x_31); +x_49 = lean_array_push(x_48, x_28); +x_50 = lean_st_ref_set(x_29, x_49, x_32); +lean_dec(x_29); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_10 = x_51; goto block_16; } } -} block_16: { lean_object* x_11; uint8_t x_12; @@ -26333,159 +26087,139 @@ return x_15; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; 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; uint8_t x_127; -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_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 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; uint8_t x_82; +x_52 = lean_ctor_get(x_4, 0); +x_53 = lean_ctor_get(x_4, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_4); -x_94 = lean_ctor_get(x_92, 0); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -lean_dec(x_94); -x_103 = lean_ctor_get(x_95, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_103, 3); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_io_promise_new(x_93); -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); -} -x_109 = lean_ctor_get(x_104, 0); -lean_inc(x_109); -x_110 = lean_string_utf8_byte_size(x_109); -lean_dec(x_109); -x_111 = l_Lean_FileMap_utf8PosToLspPos(x_104, x_110); -lean_dec(x_110); -x_112 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__1; -if (lean_is_scalar(x_108)) { - x_113 = lean_alloc_ctor(0, 2, 0); -} else { - x_113 = x_108; -} -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -x_115 = lean_box(0); -x_116 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__3; -x_117 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__4; -x_118 = l_Lean_Server_FileWorker_handleStaleDependency___rarg___closed__2; -x_119 = lean_alloc_ctor(0, 11, 0); -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_114); -lean_ctor_set(x_119, 2, x_117); -lean_ctor_set(x_119, 3, x_115); -lean_ctor_set(x_119, 4, x_115); -lean_ctor_set(x_119, 5, x_115); -lean_ctor_set(x_119, 6, x_118); -lean_ctor_set(x_119, 7, x_115); -lean_ctor_set(x_119, 8, x_115); -lean_ctor_set(x_119, 9, x_115); -lean_ctor_set(x_119, 10, x_115); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_106); -x_121 = lean_ctor_get(x_1, 3); -lean_inc(x_121); -x_122 = lean_st_ref_take(x_121, x_107); -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_array_get_size(x_123); -x_126 = lean_unsigned_to_nat(0u); -x_127 = lean_nat_dec_lt(x_126, x_125); -if (x_127 == 0) +x_54 = lean_ctor_get(x_52, 0); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +lean_dec(x_54); +x_63 = lean_ctor_get(x_55, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_63, 3); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_string_utf8_byte_size(x_65); +lean_dec(x_65); +x_67 = l_Lean_FileMap_utf8PosToLspPos(x_64, x_66); +lean_dec(x_66); +x_68 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__1; +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_69); +x_71 = lean_box(0); +x_72 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__3; +x_73 = l_Lean_Server_FileWorker_setupImports___lambda__1___closed__4; +x_74 = l_Lean_Server_FileWorker_handleStaleDependency___rarg___closed__2; +x_75 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_70); +lean_ctor_set(x_75, 2, x_73); +lean_ctor_set(x_75, 3, x_71); +lean_ctor_set(x_75, 4, x_71); +lean_ctor_set(x_75, 5, x_71); +lean_ctor_set(x_75, 6, x_74); +lean_ctor_set(x_75, 7, x_71); +lean_ctor_set(x_75, 8, x_71); +lean_ctor_set(x_75, 9, x_71); +lean_ctor_set(x_75, 10, x_71); +x_76 = lean_ctor_get(x_1, 3); +lean_inc(x_76); +x_77 = lean_st_ref_take(x_76, x_53); +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_array_get_size(x_78); +x_81 = lean_unsigned_to_nat(0u); +x_82 = lean_nat_dec_lt(x_81, x_80); +if (x_82 == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_125); -lean_dec(x_123); -x_128 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_129 = lean_array_push(x_128, x_120); -x_130 = lean_st_ref_set(x_121, x_129, x_124); -lean_dec(x_121); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -lean_dec(x_130); -x_96 = x_131; -goto block_102; +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_80); +lean_dec(x_78); +x_83 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_84 = lean_array_push(x_83, x_75); +x_85 = lean_st_ref_set(x_76, x_84, x_79); +lean_dec(x_76); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_56 = x_86; +goto block_62; } else { -uint8_t x_132; -x_132 = lean_nat_dec_le(x_125, x_125); -if (x_132 == 0) +uint8_t x_87; +x_87 = lean_nat_dec_le(x_80, x_80); +if (x_87 == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_125); -lean_dec(x_123); -x_133 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_134 = lean_array_push(x_133, x_120); -x_135 = lean_st_ref_set(x_121, x_134, x_124); -lean_dec(x_121); -x_136 = lean_ctor_get(x_135, 1); -lean_inc(x_136); -lean_dec(x_135); -x_96 = x_136; -goto block_102; +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_80); +lean_dec(x_78); +x_88 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_89 = lean_array_push(x_88, x_75); +x_90 = lean_st_ref_set(x_76, x_89, x_79); +lean_dec(x_76); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_56 = x_91; +goto block_62; } else { -size_t x_137; size_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_137 = 0; -x_138 = lean_usize_of_nat(x_125); -lean_dec(x_125); -x_139 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_140 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1(x_118, x_123, x_137, x_138, x_139); -lean_dec(x_123); -x_141 = lean_array_push(x_140, x_120); -x_142 = lean_st_ref_set(x_121, x_141, x_124); -lean_dec(x_121); -x_143 = lean_ctor_get(x_142, 1); -lean_inc(x_143); -lean_dec(x_142); -x_96 = x_143; -goto block_102; -} -} -block_102: -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_97 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics(x_1, x_95, x_96); -x_98 = lean_ctor_get(x_97, 0); +size_t x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_92 = 0; +x_93 = lean_usize_of_nat(x_80); +lean_dec(x_80); +x_94 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_95 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleStaleDependency___spec__1(x_74, x_78, x_92, x_93, x_94); +lean_dec(x_78); +x_96 = lean_array_push(x_95, x_75); +x_97 = lean_st_ref_set(x_76, x_96, x_79); +lean_dec(x_76); +x_98 = lean_ctor_get(x_97, 1); 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_97); - x_100 = lean_box(0); +lean_dec(x_97); +x_56 = x_98; +goto block_62; } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(0, 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; +block_62: +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics(x_1, x_55, 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); +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_60)) { + x_61 = lean_alloc_ctor(0, 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; } } } @@ -33840,7 +33574,405 @@ lean_dec(x_2); return x_7; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1() { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_3, x_4); +if (x_6 == 0) +{ +lean_object* x_7; 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; size_t x_15; size_t x_16; +x_7 = lean_array_uget(x_2, x_3); +x_8 = l_Lean_Lsp_DiagnosticWith_fullRange___rarg(x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec(x_8); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_nat_dec_eq(x_12, x_13); +lean_dec(x_12); +x_15 = 1; +x_16 = lean_usize_add(x_3, x_15); +if (x_14 == 0) +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_10); +x_17 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_17; +goto _start; +} +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; uint8_t x_25; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_11, 0); +lean_inc(x_20); +lean_dec(x_11); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_20, x_21); +lean_dec(x_20); +x_23 = lean_ctor_get(x_19, 0); +x_24 = lean_ctor_get(x_19, 1); +x_25 = lean_nat_dec_le(x_23, x_10); +if (x_25 == 0) +{ +uint8_t x_26; +x_26 = lean_nat_dec_le(x_10, x_23); +lean_dec(x_10); +if (x_26 == 0) +{ +lean_dec(x_22); +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +uint8_t x_28; +x_28 = lean_nat_dec_lt(x_23, x_22); +lean_dec(x_22); +if (x_28 == 0) +{ +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +lean_object* x_30; +x_30 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_30; +goto _start; +} +} +} +else +{ +uint8_t x_32; +x_32 = lean_nat_dec_lt(x_10, x_24); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_nat_dec_le(x_10, x_23); +lean_dec(x_10); +if (x_33 == 0) +{ +lean_dec(x_22); +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +uint8_t x_35; +x_35 = lean_nat_dec_lt(x_23, x_22); +lean_dec(x_22); +if (x_35 == 0) +{ +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +lean_object* x_37; +x_37 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_37; +goto _start; +} +} +} +else +{ +lean_object* x_39; +lean_dec(x_22); +lean_dec(x_10); +x_39 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_39; +goto _start; +} +} +} +} +else +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_41; +lean_dec(x_11); +lean_dec(x_10); +x_41 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_41; +goto _start; +} +else +{ +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_1, 0); +x_44 = lean_ctor_get(x_11, 0); +lean_inc(x_44); +lean_dec(x_11); +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +x_47 = lean_nat_dec_le(x_45, x_10); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = lean_nat_dec_le(x_10, x_45); +lean_dec(x_10); +if (x_48 == 0) +{ +lean_dec(x_44); +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +uint8_t x_50; +x_50 = lean_nat_dec_lt(x_45, x_44); +lean_dec(x_44); +if (x_50 == 0) +{ +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +lean_object* x_52; +x_52 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_52; +goto _start; +} +} +} +else +{ +uint8_t x_54; +x_54 = lean_nat_dec_lt(x_10, x_46); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_nat_dec_le(x_10, x_45); +lean_dec(x_10); +if (x_55 == 0) +{ +lean_dec(x_44); +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +uint8_t x_57; +x_57 = lean_nat_dec_lt(x_45, x_44); +lean_dec(x_44); +if (x_57 == 0) +{ +lean_dec(x_7); +x_3 = x_16; +goto _start; +} +else +{ +lean_object* x_59; +x_59 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_59; +goto _start; +} +} +} +else +{ +lean_object* x_61; +lean_dec(x_44); +lean_dec(x_10); +x_61 = lean_array_push(x_5, x_7); +x_3 = x_16; +x_5 = x_61; +goto _start; +} +} +} +} +} +else +{ +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(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; uint8_t x_15; +x_5 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(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_ctor_get(x_1, 3); +x_9 = lean_st_ref_get(x_8, x_7); +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_6, 0); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_get(x_13, x_11); +lean_dec(x_13); +x_15 = !lean_is_exclusive(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_20; +x_16 = lean_ctor_get(x_14, 0); +x_17 = l_Array_append___rarg(x_10, x_16); +lean_dec(x_16); +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); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_18); +lean_dec(x_17); +x_21 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +lean_ctor_set(x_14, 0, x_21); +return x_14; +} +else +{ +uint8_t x_22; +x_22 = lean_nat_dec_le(x_18, x_18); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_18); +lean_dec(x_17); +x_23 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +lean_ctor_set(x_14, 0, x_23); +return x_14; +} +else +{ +size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; +x_24 = 0; +x_25 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_26 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_27 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(x_2, x_17, x_24, x_25, x_26); +lean_dec(x_17); +lean_ctor_set(x_14, 0, x_27); +return x_14; +} +} +} +else +{ +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_14, 0); +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_14); +x_30 = l_Array_append___rarg(x_10, x_28); +lean_dec(x_28); +x_31 = lean_array_get_size(x_30); +x_32 = lean_unsigned_to_nat(0u); +x_33 = lean_nat_dec_lt(x_32, x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_31); +lean_dec(x_30); +x_34 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_29); +return x_35; +} +else +{ +uint8_t x_36; +x_36 = lean_nat_dec_le(x_31, x_31); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_31); +lean_dec(x_30); +x_37 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_29); +return x_38; +} +else +{ +size_t x_39; size_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = 0; +x_40 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_41 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; +x_42 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(x_2, x_30, x_39, x_40, x_41); +lean_dec(x_30); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_29); +return x_43; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___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_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(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_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1() { _start: { lean_object* x_1; @@ -33848,7 +33980,7 @@ x_1 = lean_mk_string_unchecked("Cannot parse request params: ", 29, 29); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2(lean_object* x_1) { _start: { lean_object* x_2; @@ -33863,7 +33995,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; 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; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); x_8 = l_Lean_Server_FileWorker_parseParams___rarg___closed__2; @@ -33886,7 +34018,7 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); x_19 = l_Lean_Server_FileWorker_parseParams___rarg___closed__2; @@ -33926,17 +34058,17 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; -x_4 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2(x_1); +x_4 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2(x_1); x_5 = l_EIO_ofExcept___rarg(x_4, x_3); lean_dec(x_4); return x_5; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__1() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__1() { _start: { lean_object* x_1; @@ -33944,7 +34076,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodableMsgEmbed_enc____x return x_1; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__2() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -33953,27 +34085,27 @@ x_2 = l_Lean_JsonNumber_fromNat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__3() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__2; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__2; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__4() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__3; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__3; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__5() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -33982,27 +34114,27 @@ x_2 = l_Lean_JsonNumber_fromNat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__6() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__5; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__7() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__6; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__6; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__8() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__8() { _start: { lean_object* x_1; lean_object* x_2; @@ -34011,27 +34143,27 @@ x_2 = l_Lean_JsonNumber_fromNat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__9() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__8; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__8; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__10() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__9; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__9; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__11() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__11() { _start: { lean_object* x_1; lean_object* x_2; @@ -34040,27 +34172,27 @@ x_2 = l_Lean_JsonNumber_fromNat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__12() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__11; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__11; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__13() { +static lean_object* _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__12; +x_1 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__12; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3(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_203; @@ -34130,7 +34262,7 @@ switch (x_197) { case 0: { lean_object* x_198; -x_198 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__4; +x_198 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__4; x_7 = x_198; x_8 = x_6; goto block_193; @@ -34138,7 +34270,7 @@ goto block_193; case 1: { lean_object* x_199; -x_199 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__7; +x_199 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__7; x_7 = x_199; x_8 = x_6; goto block_193; @@ -34146,7 +34278,7 @@ goto block_193; case 2: { lean_object* x_200; -x_200 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__10; +x_200 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__10; x_7 = x_200; x_8 = x_6; goto block_193; @@ -34154,7 +34286,7 @@ goto block_193; default: { lean_object* x_201; -x_201 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__13; +x_201 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__13; x_7 = x_201; x_8 = x_6; goto block_193; @@ -34401,7 +34533,7 @@ block_146: lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_124; x_15 = lean_ctor_get(x_1, 6); lean_inc(x_15); -x_16 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__1; +x_16 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__1; x_17 = l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_instRpcEncodableMsgEmbed_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_570____spec__1(x_16, x_15, x_14); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); @@ -34924,212 +35056,7 @@ return x_99; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___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_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_st_ref_take(x_1, 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_ctor_get(x_2, 0); -lean_inc(x_10); -lean_dec(x_2); -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; uint8_t x_19; -x_12 = lean_ctor_get(x_8, 0); -x_13 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3(x_10, 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_ctor_set(x_8, 0, x_15); -x_16 = lean_st_ref_set(x_1, x_8, x_9); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_io_promise_resolve(x_14, x_3, x_17); -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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1; -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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1; -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; 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_25 = lean_ctor_get(x_8, 0); -x_26 = lean_ctor_get(x_8, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_8); -x_27 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3(x_10, x_25); -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(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_26); -x_31 = lean_st_ref_set(x_1, x_30, x_9); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_io_promise_resolve(x_28, x_3, 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_33); - x_35 = lean_box(0); -} -x_36 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1; -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; -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = lean_usize_dec_lt(x_6, x_5); -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_dec(x_7); -x_12 = lean_array_uget(x_4, x_6); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -x_14 = l_IO_Promise_isResolved___rarg(x_13, x_9); -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; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_box(0); -x_19 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1(x_1, x_12, x_13, x_18, x_8, x_17); -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_20, 0); -lean_inc(x_22); -lean_dec(x_20); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -x_6 = x_24; -x_7 = x_22; -x_9 = x_21; -goto _start; -} -else -{ -lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; -lean_dec(x_13); -lean_dec(x_12); -x_26 = lean_ctor_get(x_14, 1); -lean_inc(x_26); -lean_dec(x_14); -x_27 = 1; -x_28 = lean_usize_add(x_6, x_27); -x_29 = lean_box(0); -x_6 = x_28; -x_7 = x_29; -x_9 = x_26; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__5(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; -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 = l_IO_Promise_result_x21___rarg(x_8); -lean_dec(x_8); -x_10 = lean_task_get_own(x_9); -x_11 = 1; -x_12 = lean_usize_add(x_2, x_11); -x_13 = lean_array_uset(x_7, x_2, x_10); -x_2 = x_12; -x_3 = x_13; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__4(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -35144,614 +35071,24 @@ return x_6; } else { -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_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; x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); -x_10 = 1; -x_11 = lean_usize_add(x_2, x_10); -x_12 = lean_array_uset(x_9, x_2, x_7); -x_2 = x_11; -x_3 = x_12; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__7(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = lean_usize_dec_eq(x_3, x_4); -if (x_6 == 0) -{ -lean_object* x_7; 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; size_t x_16; size_t x_17; -x_7 = lean_array_uget(x_2, x_3); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = l_Lean_Lsp_DiagnosticWith_fullRange___rarg(x_8); -lean_dec(x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); +x_10 = l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3(x_7, x_4); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -lean_dec(x_9); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_nat_dec_eq(x_13, x_14); -lean_dec(x_13); -x_16 = 1; -x_17 = lean_usize_add(x_3, x_16); -if (x_15 == 0) -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_18; -lean_dec(x_12); -lean_dec(x_11); -x_18 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_18; +lean_dec(x_10); +x_13 = 1; +x_14 = lean_usize_add(x_2, x_13); +x_15 = lean_array_uset(x_9, x_2, x_11); +x_2 = x_14; +x_3 = x_15; +x_4 = x_12; goto _start; } -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; uint8_t x_26; -x_20 = lean_ctor_get(x_1, 0); -x_21 = lean_ctor_get(x_12, 0); -lean_inc(x_21); -lean_dec(x_12); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_21, x_22); -lean_dec(x_21); -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -x_26 = lean_nat_dec_le(x_24, x_11); -if (x_26 == 0) -{ -uint8_t x_27; -x_27 = lean_nat_dec_le(x_11, x_24); -lean_dec(x_11); -if (x_27 == 0) -{ -lean_dec(x_23); -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -uint8_t x_29; -x_29 = lean_nat_dec_lt(x_24, x_23); -lean_dec(x_23); -if (x_29 == 0) -{ -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -lean_object* x_31; -x_31 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_31; -goto _start; -} -} -} -else -{ -uint8_t x_33; -x_33 = lean_nat_dec_lt(x_11, x_25); -if (x_33 == 0) -{ -uint8_t x_34; -x_34 = lean_nat_dec_le(x_11, x_24); -lean_dec(x_11); -if (x_34 == 0) -{ -lean_dec(x_23); -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -uint8_t x_36; -x_36 = lean_nat_dec_lt(x_24, x_23); -lean_dec(x_23); -if (x_36 == 0) -{ -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -lean_object* x_38; -x_38 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_38; -goto _start; -} -} -} -else -{ -lean_object* x_40; -lean_dec(x_23); -lean_dec(x_11); -x_40 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_40; -goto _start; -} -} -} -} -else -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_42; -lean_dec(x_12); -lean_dec(x_11); -x_42 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_42; -goto _start; -} -else -{ -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_1, 0); -x_45 = lean_ctor_get(x_12, 0); -lean_inc(x_45); -lean_dec(x_12); -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); -x_48 = lean_nat_dec_le(x_46, x_11); -if (x_48 == 0) -{ -uint8_t x_49; -x_49 = lean_nat_dec_le(x_11, x_46); -lean_dec(x_11); -if (x_49 == 0) -{ -lean_dec(x_45); -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -uint8_t x_51; -x_51 = lean_nat_dec_lt(x_46, x_45); -lean_dec(x_45); -if (x_51 == 0) -{ -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -lean_object* x_53; -x_53 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_53; -goto _start; -} -} -} -else -{ -uint8_t x_55; -x_55 = lean_nat_dec_lt(x_11, x_47); -if (x_55 == 0) -{ -uint8_t x_56; -x_56 = lean_nat_dec_le(x_11, x_46); -lean_dec(x_11); -if (x_56 == 0) -{ -lean_dec(x_45); -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -uint8_t x_58; -x_58 = lean_nat_dec_lt(x_46, x_45); -lean_dec(x_45); -if (x_58 == 0) -{ -lean_dec(x_7); -x_3 = x_17; -goto _start; -} -else -{ -lean_object* x_60; -x_60 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_60; -goto _start; -} -} -} -else -{ -lean_object* x_62; -lean_dec(x_45); -lean_dec(x_11); -x_62 = lean_array_push(x_5, x_7); -x_3 = x_17; -x_5 = x_62; -goto _start; -} -} -} -} -} -else -{ -return x_5; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(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; uint64_t x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_2, 4); -lean_inc(x_6); -lean_dec(x_2); -x_7 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_8 = l_Lean_RBNode_find___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__1(x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_3); -x_9 = l_Lean_Server_RequestError_rpcNeedsReconnect; -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_5); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_8, 0); -lean_inc(x_11); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - x_12 = x_8; -} else { - lean_dec_ref(x_8); - x_12 = lean_box(0); -} -x_13 = lean_ctor_get(x_3, 2); -lean_inc(x_13); -lean_dec(x_3); -x_14 = l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(x_13, x_4, x_5); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_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; size_t x_34; lean_object* x_35; -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_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_4, 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, 3); -x_21 = lean_st_ref_get(x_20, x_19); -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_ctor_get(x_18, 0); -lean_inc(x_24); -lean_dec(x_18); -x_25 = lean_ctor_get(x_24, 3); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_st_ref_get(x_25, x_23); -lean_dec(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 = l_Array_append___rarg(x_22, x_27); -lean_dec(x_27); -x_30 = lean_array_get_size(x_29); -x_31 = lean_unsigned_to_nat(0u); -x_32 = lean_nat_dec_lt(x_31, x_30); -x_33 = lean_box(0); -x_34 = 0; -if (x_32 == 0) -{ -lean_object* x_79; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_15); -x_79 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_35 = x_79; -goto block_78; -} -else -{ -uint8_t x_80; -x_80 = lean_nat_dec_le(x_30, x_30); -if (x_80 == 0) -{ -lean_object* x_81; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_15); -x_81 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_35 = x_81; -goto block_78; -} -else -{ -size_t x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_usize_of_nat(x_30); -lean_dec(x_30); -x_83 = l_Array_filterMapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress___spec__1___closed__1; -x_84 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__7(x_15, x_29, x_34, x_82, x_83); -lean_dec(x_29); -lean_dec(x_15); -x_35 = x_84; -goto block_78; -} -} -block_78: -{ -size_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_43; uint8_t x_44; -x_36 = lean_array_size(x_35); -x_37 = lean_box(0); -x_38 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4(x_11, x_33, x_35, x_35, x_36, x_34, x_37, x_4, x_28); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__5(x_36, x_34, x_35); -x_41 = lean_st_ref_take(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); -x_44 = !lean_is_exclusive(x_42); -if (x_44 == 0) -{ -lean_object* x_45; size_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_45 = lean_ctor_get(x_42, 0); -x_46 = lean_array_size(x_40); -x_47 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6(x_46, x_34, x_40, x_45); -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_size(x_48); -x_51 = l_Array_mapMUnsafe_map___at_Lean_Server_instRpcEncodableArray___spec__2(x_50, x_34, x_48); -if (lean_is_scalar(x_12)) { - x_52 = lean_alloc_ctor(4, 1, 0); -} else { - x_52 = x_12; - lean_ctor_set_tag(x_52, 4); -} -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_42, 0, x_49); -x_53 = lean_st_ref_set(x_11, x_42, x_43); -lean_dec(x_11); -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) -{ -lean_object* x_55; uint8_t x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_53, 0); -lean_dec(x_55); -x_56 = 1; -x_57 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_57, 0, x_52); -lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_56); -lean_ctor_set(x_53, 0, x_57); -return x_53; -} -else -{ -lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; -x_58 = lean_ctor_get(x_53, 1); -lean_inc(x_58); -lean_dec(x_53); -x_59 = 1; -x_60 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_60, 0, x_52); -lean_ctor_set_uint8(x_60, sizeof(void*)*1, x_59); -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; -} -} -else -{ -lean_object* x_62; lean_object* x_63; size_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; size_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; uint8_t x_75; lean_object* x_76; lean_object* x_77; -x_62 = lean_ctor_get(x_42, 0); -x_63 = lean_ctor_get(x_42, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_42); -x_64 = lean_array_size(x_40); -x_65 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6(x_64, x_34, x_40, x_62); -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_array_size(x_66); -x_69 = l_Array_mapMUnsafe_map___at_Lean_Server_instRpcEncodableArray___spec__2(x_68, x_34, x_66); -if (lean_is_scalar(x_12)) { - x_70 = lean_alloc_ctor(4, 1, 0); -} else { - x_70 = x_12; - lean_ctor_set_tag(x_70, 4); -} -lean_ctor_set(x_70, 0, x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_67); -lean_ctor_set(x_71, 1, x_63); -x_72 = lean_st_ref_set(x_11, x_71, x_43); -lean_dec(x_11); -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 = 1; -x_76 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_76, 0, x_70); -lean_ctor_set_uint8(x_76, sizeof(void*)*1, x_75); -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 -{ -uint8_t x_85; -lean_dec(x_12); -lean_dec(x_11); -x_85 = !lean_is_exclusive(x_14); -if (x_85 == 0) -{ -return x_14; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_14, 0); -x_87 = lean_ctor_get(x_14, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_14); -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_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___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_1); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_11 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__5(x_4, x_5, x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6___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_1); -lean_dec(x_1); -x_6 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__6(x_5, x_6, x_3, x_4); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__7(x_1, x_2, x_6, x_7, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___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_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; } } LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -35981,66 +35318,366 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___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_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(lean_object* x_1) { _start: { -lean_object* x_7; -x_7 = l_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(x_1, x_2, x_3, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__6(lean_object* x_1, lean_object* x_2) { +_start: { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_task_pure(x_10); -x_12 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_7, 0, x_12); -return x_7; +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_dec(x_4); +lean_ctor_set(x_1, 0, x_2); +return x_1; } 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; -x_13 = lean_ctor_get(x_7, 0); -x_14 = lean_ctor_get(x_7, 1); +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +} +} +static lean_object* _init_l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___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) { +_start: +{ +lean_object* x_7; uint64_t x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_1, 4); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +x_9 = l_Lean_RBNode_find___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__1(x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +x_10 = l_Lean_Server_RequestError_rpcNeedsReconnect; +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_6); +return x_11; +} +else +{ +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, 0); +x_14 = lean_ctor_get(x_2, 2); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_7); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_13); -x_16 = lean_task_pure(x_15); -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_14); -return x_18; -} -} -else +lean_dec(x_2); +x_15 = l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1(x_14, x_5, x_6); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_19; -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_object* x_16; lean_object* x_17; lean_object* x_18; 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; uint8_t x_29; +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_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(x_3, x_16, x_5, x_17); +lean_dec(x_16); +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_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; +lean_dec(x_18); +x_21 = lean_st_ref_take(x_13, 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_22); +x_24 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__6), 2, 1); +lean_closure_set(x_24, 0, x_22); +x_25 = lean_ctor_get(x_22, 0); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_array_size(x_19); +x_27 = 0; +x_28 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__4(x_26, x_27, x_19, x_25); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +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; uint8_t x_39; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_array_size(x_30); +x_32 = l_Array_mapMUnsafe_map___at_Lean_Server_instRpcEncodableArray___spec__2(x_31, x_27, x_30); +x_33 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_28, 0, x_33); +x_34 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1; +x_35 = l_Prod_map___rarg(x_34, x_24, x_28); +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_st_ref_set(x_13, x_37, x_23); +lean_dec(x_13); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +x_41 = 1; +x_42 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_42, 0, x_36); +lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = lean_task_pure(x_43); +lean_ctor_set(x_9, 0, x_44); +lean_ctor_set(x_38, 0, x_9); +return x_38; +} +else +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); +lean_dec(x_38); +x_46 = 1; +x_47 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_47, 0, x_36); +lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_task_pure(x_48); +lean_ctor_set(x_9, 0, x_49); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_9); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; size_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; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +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_array_size(x_51); +x_54 = l_Array_mapMUnsafe_map___at_Lean_Server_instRpcEncodableArray___spec__2(x_53, x_27, x_51); +x_55 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_55, 0, 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_52); +x_57 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1; +x_58 = l_Prod_map___rarg(x_57, x_24, 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_61 = lean_st_ref_set(x_13, x_60, x_23); +lean_dec(x_13); +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); +} +x_64 = 1; +x_65 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set_uint8(x_65, sizeof(void*)*1, x_64); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_task_pure(x_66); +lean_ctor_set(x_9, 0, x_67); +if (lean_is_scalar(x_63)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_63; +} +lean_ctor_set(x_68, 0, x_9); +lean_ctor_set(x_68, 1, x_62); +return x_68; +} +} +else +{ +uint8_t x_69; +lean_free_object(x_9); +lean_dec(x_13); +x_69 = !lean_is_exclusive(x_15); +if (x_69 == 0) +{ +return x_15; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_15, 0); +x_71 = lean_ctor_get(x_15, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_15); +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; +x_73 = lean_ctor_get(x_9, 0); +lean_inc(x_73); +lean_dec(x_9); +x_74 = lean_ctor_get(x_2, 2); +lean_inc(x_74); +lean_dec(x_2); +x_75 = l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1(x_74, x_5, x_6); +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_object* x_83; lean_object* x_84; lean_object* x_85; size_t x_86; size_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* 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; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +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_Server_FileWorker_handleGetInteractiveDiagnosticsRequest(x_3, x_76, x_5, x_77); +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_81 = lean_st_ref_take(x_73, x_80); +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_82); +x_84 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__6), 2, 1); +lean_closure_set(x_84, 0, x_82); +x_85 = lean_ctor_get(x_82, 0); +lean_inc(x_85); +lean_dec(x_82); +x_86 = lean_array_size(x_79); +x_87 = 0; +x_88 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__4(x_86, x_87, x_79, x_85); +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 = lean_array_size(x_89); +x_93 = l_Array_mapMUnsafe_map___at_Lean_Server_instRpcEncodableArray___spec__2(x_92, x_87, x_89); +x_94 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_94, 0, x_93); +if (lean_is_scalar(x_91)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_91; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_90); +x_96 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1; +x_97 = l_Prod_map___rarg(x_96, x_84, 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); +x_100 = lean_st_ref_set(x_73, x_99, x_83); +lean_dec(x_73); +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); +} +x_103 = 1; +x_104 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_104, 0, x_98); +lean_ctor_set_uint8(x_104, sizeof(void*)*1, x_103); +x_105 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_105, 0, x_104); +x_106 = lean_task_pure(x_105); +x_107 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_107, 0, x_106); +if (lean_is_scalar(x_102)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_102; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_101); +return x_108; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_73); +x_109 = lean_ctor_get(x_75, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_75, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_111 = x_75; +} else { + lean_dec_ref(x_75); + 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; +} } } } @@ -36344,7 +35981,7 @@ else lean_object* x_60; lean_object* x_61; lean_free_object(x_52); x_60 = lean_box(0); -x_61 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(x_1, x_2, x_54, x_60, x_6, x_55); +x_61 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7(x_2, x_54, x_1, x_60, x_6, x_55); lean_dec(x_6); return x_61; } @@ -36378,7 +36015,7 @@ else { lean_object* x_69; lean_object* x_70; x_69 = lean_box(0); -x_70 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(x_1, x_2, x_62, x_69, x_6, x_63); +x_70 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7(x_2, x_62, x_1, x_69, x_6, x_63); lean_dec(x_6); return x_70; } @@ -36411,6 +36048,27 @@ return x_74; } } } +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_RequestM_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___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_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_7 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__4(x_5, x_6, x_3, x_4); +return x_7; +} +} LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -36448,14 +36106,23 @@ lean_dec(x_4); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___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_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_1); +lean_dec(x_3); return x_7; } } @@ -51302,7 +50969,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__5___closed__2); 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_2764_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_2716_(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); @@ -51383,36 +51050,36 @@ l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__1 = _ini lean_mark_persistent(l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__1); l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__2 = _init_l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__2(); lean_mark_persistent(l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___closed__2); -l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__2___closed__1); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__1 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__1(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__1); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__2 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__2(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__2); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__3 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__3(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__3); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__4 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__4(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__4); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__5 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__5(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__5); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__6 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__6(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__6); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__7 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__7(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__7); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__8 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__8(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__8); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__9 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__9(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__9); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__10 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__10(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__10); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__11 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__11(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__11); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__12 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__12(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__12); -l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__13 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__13(); -lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__3___closed__13); -l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__4___lambda__1___closed__1); +l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__2___closed__1); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__1 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__1); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__2 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__2); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__3 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__3(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__3); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__4 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__4(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__4); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__5 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__5(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__5); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__6 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__6(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__6); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__7 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__7(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__7); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__8 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__8(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__8); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__9 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__9(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__9); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__10 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__10(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__10); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__11 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__11(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__11); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__12 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__12(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__12); +l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__13 = _init_l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__13(); +lean_mark_persistent(l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1853____at_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___spec__3___closed__13); +l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1 = _init_l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___lambda__7___closed__1); l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__1 = _init_l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__1); l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__2 = _init_l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__2(); diff --git a/stage0/stdlib/Lean/Util/CollectAxioms.c b/stage0/stdlib/Lean/Util/CollectAxioms.c index b18e6e22c8..d39f523aab 100644 --- a/stage0/stdlib/Lean/Util/CollectAxioms.c +++ b/stage0/stdlib/Lean/Util/CollectAxioms.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Util.CollectAxioms -// Imports: Lean.MonadEnv Lean.Util.FoldConsts +// Imports: Lean.CoreM #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,31 +13,267 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Lean_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__8; +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__6; +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__7; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1(lean_object*); +static lean_object* l_Lean_registerAxiomsForDecl___closed__3; +static lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__3; size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_List_forM___at_Lean_CollectAxioms_collect___spec__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_collectAxioms___at_Lean_registerAxiomsForDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_registerAxiomsForDecl___closed__1; +LEAN_EXPORT lean_object* l_Lean_registerAxiomsForDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_registerAxiomsForDecl___closed__2; +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___boxed(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__2; +lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_collectAxioms___rarg___lambda__1___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(lean_object*, 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_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__10; +LEAN_EXPORT lean_object* l_Lean_registerAxiomsForDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; -static lean_object* l_Lean_collectAxioms___rarg___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__13; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_exportedAxiomsExt; +lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__12; +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__5; lean_object* lean_array_mk(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3_(lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +size_t lean_array_size(lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_collectAxioms___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Expr_getUsedConstants(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_collectAxioms___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_collectAxioms___at_Lean_registerAxiomsForDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__9; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_collectAxioms(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___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) { +static lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__11; +static lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__1; +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_ctor_get(x_2, 3); +x_7 = l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2(x_1, x_3); +lean_inc(x_5); +lean_inc(x_4); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_5); +x_9 = lean_array_push(x_7, x_8); +x_1 = x_9; +x_2 = x_6; +goto _start; +} +} +} +static lean_object* _init_l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___closed__1; +x_3 = l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__2() { +_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_Util_CollectAxioms___hyg_3____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_Util_CollectAxioms___hyg_3____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Util", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__4; +x_2 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("CollectAxioms", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__6; +x_2 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____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_Util_CollectAxioms___hyg_3____closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__8; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__9; +x_2 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("exportedAxiomsExt", 17, 17); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__10; +x_2 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__11; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__12; +x_3 = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__13; +x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_RBNode_fold___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___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) { _start: { uint8_t x_7; @@ -48,7 +284,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t lean_dec(x_4); x_8 = lean_array_uget(x_1, x_2); lean_inc(x_5); -x_9 = l_Lean_CollectAxioms_collect(x_8, x_5, x_6); +x_9 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_8, x_5, x_6); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -72,7 +308,7 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_List_forM___at_Lean_CollectAxioms_collect___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -94,7 +330,7 @@ x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_dec(x_1); lean_inc(x_2); -x_8 = l_Lean_CollectAxioms_collect(x_6, x_2, x_3); +x_8 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_6, x_2, x_3); x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); @@ -104,7 +340,613 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_CollectAxioms_collect(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___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) { +_start: +{ +uint8_t x_10; +x_10 = lean_usize_dec_lt(x_6, x_5); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_8); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; uint8_t x_13; +lean_dec(x_7); +x_12 = lean_array_uget(x_4, x_6); +x_13 = lean_name_eq(x_12, x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; +lean_inc(x_8); +x_14 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_12, x_8, x_9); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = 1; +x_17 = lean_usize_add(x_6, x_16); +x_18 = lean_box(0); +x_6 = x_17; +x_7 = x_18; +x_9 = x_15; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_12); +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_9, 1); +lean_inc(x_1); +x_22 = lean_array_push(x_21, x_1); +lean_ctor_set(x_9, 1, x_22); +x_23 = 1; +x_24 = lean_usize_add(x_6, x_23); +x_25 = lean_box(0); +x_6 = x_24; +x_7 = x_25; +goto _start; +} +else +{ +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; +x_27 = lean_ctor_get(x_9, 0); +x_28 = lean_ctor_get(x_9, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_9); +lean_inc(x_1); +x_29 = lean_array_push(x_28, x_1); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_27); +lean_ctor_set(x_30, 1, x_29); +x_31 = 1; +x_32 = lean_usize_add(x_6, x_31); +x_33 = lean_box(0); +x_6 = x_32; +x_7 = x_33; +x_9 = x_30; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___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; +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_task_get_own(x_6); +lean_inc(x_2); +x_8 = lean_environment_find(x_7, x_2); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +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_5); +return x_10; +} +else +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +lean_dec(x_8); +switch (lean_obj_tag(x_11)) { +case 0: +{ +uint8_t x_12; +lean_dec(x_11); +lean_dec(x_4); +x_12 = !lean_is_exclusive(x_5); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_5, 1); +x_14 = lean_array_push(x_13, x_2); +lean_ctor_set(x_5, 1, x_14); +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_5); +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; +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_dec(x_5); +x_19 = lean_array_push(x_18, x_2); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_17); +lean_ctor_set(x_20, 1, x_19); +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; +} +} +case 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; uint8_t x_29; lean_object* x_30; +lean_dec(x_2); +x_23 = lean_ctor_get(x_11, 0); +lean_inc(x_23); +lean_dec(x_11); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_24, 2); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_Expr_getUsedConstants(x_25); +x_27 = lean_array_get_size(x_26); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_nat_dec_lt(x_28, x_27); +if (x_29 == 0) +{ +lean_dec(x_27); +lean_dec(x_26); +x_30 = x_5; +goto block_44; +} +else +{ +uint8_t x_45; +x_45 = lean_nat_dec_le(x_27, x_27); +if (x_45 == 0) +{ +lean_dec(x_27); +lean_dec(x_26); +x_30 = x_5; +goto block_44; +} +else +{ +size_t x_46; size_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = 0; +x_47 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_48 = lean_box(0); +lean_inc(x_4); +x_49 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_26, x_46, x_47, x_48, x_4, x_5); +lean_dec(x_26); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_30 = x_50; +goto block_44; +} +} +block_44: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_dec(x_23); +x_32 = l_Lean_Expr_getUsedConstants(x_31); +x_33 = lean_array_get_size(x_32); +x_34 = lean_nat_dec_lt(x_28, x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_4); +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_30); +return x_36; +} +else +{ +uint8_t x_37; +x_37 = lean_nat_dec_le(x_33, x_33); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_4); +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_30); +return x_39; +} +else +{ +size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; +x_40 = 0; +x_41 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_42 = lean_box(0); +x_43 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_32, x_40, x_41, x_42, x_4, x_30); +lean_dec(x_32); +return x_43; +} +} +} +} +case 2: +{ +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_dec(x_2); +x_51 = lean_ctor_get(x_11, 0); +lean_inc(x_51); +lean_dec(x_11); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_52, 2); +lean_inc(x_53); +lean_dec(x_52); +x_54 = l_Lean_Expr_getUsedConstants(x_53); +x_55 = lean_array_get_size(x_54); +x_56 = lean_unsigned_to_nat(0u); +x_57 = lean_nat_dec_lt(x_56, x_55); +if (x_57 == 0) +{ +lean_dec(x_55); +lean_dec(x_54); +x_58 = x_5; +goto block_72; +} +else +{ +uint8_t x_73; +x_73 = lean_nat_dec_le(x_55, x_55); +if (x_73 == 0) +{ +lean_dec(x_55); +lean_dec(x_54); +x_58 = x_5; +goto block_72; +} +else +{ +size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_74 = 0; +x_75 = lean_usize_of_nat(x_55); +lean_dec(x_55); +x_76 = lean_box(0); +lean_inc(x_4); +x_77 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_54, x_74, x_75, x_76, x_4, x_5); +lean_dec(x_54); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); +x_58 = x_78; +goto block_72; +} +} +block_72: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_51, 1); +lean_inc(x_59); +lean_dec(x_51); +x_60 = l_Lean_Expr_getUsedConstants(x_59); +x_61 = lean_array_get_size(x_60); +x_62 = lean_nat_dec_lt(x_56, x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_4); +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_58); +return x_64; +} +else +{ +uint8_t x_65; +x_65 = lean_nat_dec_le(x_61, x_61); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_4); +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_58); +return x_67; +} +else +{ +size_t x_68; size_t x_69; lean_object* x_70; lean_object* x_71; +x_68 = 0; +x_69 = lean_usize_of_nat(x_61); +lean_dec(x_61); +x_70 = lean_box(0); +x_71 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_60, x_68, x_69, x_70, x_4, x_58); +lean_dec(x_60); +return x_71; +} +} +} +} +case 3: +{ +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_dec(x_2); +x_79 = lean_ctor_get(x_11, 0); +lean_inc(x_79); +lean_dec(x_11); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_80, 2); +lean_inc(x_81); +lean_dec(x_80); +x_82 = l_Lean_Expr_getUsedConstants(x_81); +x_83 = lean_array_get_size(x_82); +x_84 = lean_unsigned_to_nat(0u); +x_85 = lean_nat_dec_lt(x_84, x_83); +if (x_85 == 0) +{ +lean_dec(x_83); +lean_dec(x_82); +x_86 = x_5; +goto block_100; +} +else +{ +uint8_t x_101; +x_101 = lean_nat_dec_le(x_83, x_83); +if (x_101 == 0) +{ +lean_dec(x_83); +lean_dec(x_82); +x_86 = x_5; +goto block_100; +} +else +{ +size_t x_102; size_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = 0; +x_103 = lean_usize_of_nat(x_83); +lean_dec(x_83); +x_104 = lean_box(0); +lean_inc(x_4); +x_105 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_82, x_102, x_103, x_104, x_4, x_5); +lean_dec(x_82); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec(x_105); +x_86 = x_106; +goto block_100; +} +} +block_100: +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_79, 1); +lean_inc(x_87); +lean_dec(x_79); +x_88 = l_Lean_Expr_getUsedConstants(x_87); +x_89 = lean_array_get_size(x_88); +x_90 = lean_nat_dec_lt(x_84, x_89); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_89); +lean_dec(x_88); +lean_dec(x_4); +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_86); +return x_92; +} +else +{ +uint8_t x_93; +x_93 = lean_nat_dec_le(x_89, x_89); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_89); +lean_dec(x_88); +lean_dec(x_4); +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_86); +return x_95; +} +else +{ +size_t x_96; size_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = 0; +x_97 = lean_usize_of_nat(x_89); +lean_dec(x_89); +x_98 = lean_box(0); +x_99 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_88, x_96, x_97, x_98, x_4, x_86); +lean_dec(x_88); +return x_99; +} +} +} +} +case 4: +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_2); +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_5); +return x_108; +} +case 5: +{ +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_dec(x_2); +x_109 = lean_ctor_get(x_11, 0); +lean_inc(x_109); +lean_dec(x_11); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 2); +lean_inc(x_111); +lean_dec(x_110); +x_112 = l_Lean_Expr_getUsedConstants(x_111); +x_113 = lean_array_get_size(x_112); +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_object* x_117; +lean_dec(x_113); +lean_dec(x_112); +x_116 = lean_ctor_get(x_109, 4); +lean_inc(x_116); +lean_dec(x_109); +x_117 = l_List_forM___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__2(x_116, x_4, x_5); +return x_117; +} +else +{ +uint8_t x_118; +x_118 = lean_nat_dec_le(x_113, x_113); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; +lean_dec(x_113); +lean_dec(x_112); +x_119 = lean_ctor_get(x_109, 4); +lean_inc(x_119); +lean_dec(x_109); +x_120 = l_List_forM___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__2(x_119, x_4, x_5); +return x_120; +} +else +{ +size_t x_121; size_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_121 = 0; +x_122 = lean_usize_of_nat(x_113); +lean_dec(x_113); +x_123 = lean_box(0); +lean_inc(x_4); +x_124 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_112, x_121, x_122, x_123, x_4, x_5); +lean_dec(x_112); +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +lean_dec(x_124); +x_126 = lean_ctor_get(x_109, 4); +lean_inc(x_126); +lean_dec(x_109); +x_127 = l_List_forM___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__2(x_126, x_4, x_125); +return x_127; +} +} +} +default: +{ +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_dec(x_2); +x_128 = lean_ctor_get(x_11, 0); +lean_inc(x_128); +lean_dec(x_11); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +lean_dec(x_128); +x_130 = lean_ctor_get(x_129, 2); +lean_inc(x_130); +lean_dec(x_129); +x_131 = l_Lean_Expr_getUsedConstants(x_130); +x_132 = lean_array_get_size(x_131); +x_133 = lean_unsigned_to_nat(0u); +x_134 = lean_nat_dec_lt(x_133, x_132); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; +lean_dec(x_132); +lean_dec(x_131); +lean_dec(x_4); +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_5); +return x_136; +} +else +{ +uint8_t x_137; +x_137 = lean_nat_dec_le(x_132, x_132); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; +lean_dec(x_132); +lean_dec(x_131); +lean_dec(x_4); +x_138 = lean_box(0); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_5); +return x_139; +} +else +{ +size_t x_140; size_t x_141; lean_object* x_142; lean_object* x_143; +x_140 = 0; +x_141 = lean_usize_of_nat(x_132); +lean_dec(x_132); +x_142 = lean_box(0); +x_143 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_131, x_140, x_141, x_142, x_4, x_5); +lean_dec(x_131); +return x_143; +} +} +} +} +} +} +} +static lean_object* _init_l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___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___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Util_CollectAxioms_0__Lean_exportedAxiomsExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -119,7 +961,7 @@ uint8_t x_7; x_7 = !lean_is_exclusive(x_3); if (x_7 == 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; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; x_8 = lean_ctor_get(x_3, 1); lean_dec(x_8); x_9 = lean_ctor_get(x_3, 0); @@ -127,990 +969,124 @@ lean_dec(x_9); x_10 = lean_box(0); lean_inc(x_1); x_11 = l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_1, x_10); -lean_inc(x_5); -lean_inc(x_11); lean_ctor_set(x_3, 0, x_11); -x_12 = lean_ctor_get(x_2, 2); -lean_inc(x_12); -x_13 = lean_task_get_own(x_12); +x_12 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__1; +x_13 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2; +x_14 = 0; lean_inc(x_1); -x_14 = lean_environment_find(x_13, x_1); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; -lean_dec(x_11); -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_10); -lean_ctor_set(x_15, 1, x_3); -return x_15; -} -else +lean_inc(x_2); +x_15 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_12, x_13, x_2, x_1, x_14); +if (lean_obj_tag(x_15) == 0) { lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -switch (lean_obj_tag(x_16)) { -case 0: -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_16); -lean_dec(x_3); -lean_dec(x_2); -x_17 = lean_array_push(x_5, x_1); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_10); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_inc(x_2); +x_16 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___lambda__1(x_2, x_1, x_10, x_2, x_3); +return x_16; } -case 1: +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; uint8_t x_26; lean_object* x_27; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_20 = lean_ctor_get(x_16, 0); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_21, 2); -lean_inc(x_22); +lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; uint8_t x_22; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_box(0); +x_19 = lean_array_size(x_17); +x_20 = 0; +x_21 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__3(x_1, x_17, x_18, x_17, x_19, x_20, x_10, x_2, x_3); +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_10); +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_23 = l_Lean_Expr_getUsedConstants(x_22); -x_24 = lean_array_get_size(x_23); -x_25 = lean_unsigned_to_nat(0u); -x_26 = lean_nat_dec_lt(x_25, x_24); -if (x_26 == 0) -{ -lean_dec(x_24); -lean_dec(x_23); -x_27 = x_3; -goto block_38; -} -else -{ -uint8_t x_39; -x_39 = lean_nat_dec_le(x_24, x_24); -if (x_39 == 0) -{ -lean_dec(x_24); -lean_dec(x_23); -x_27 = x_3; -goto block_38; -} -else -{ -size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; -x_40 = 0; -x_41 = lean_usize_of_nat(x_24); -lean_dec(x_24); -lean_inc(x_2); -x_42 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_23, x_40, x_41, x_10, x_2, x_3); -lean_dec(x_23); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_27 = x_43; -goto block_38; -} -} -block_38: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_20, 1); -lean_inc(x_28); -lean_dec(x_20); -x_29 = l_Lean_Expr_getUsedConstants(x_28); -x_30 = lean_array_get_size(x_29); -x_31 = lean_nat_dec_lt(x_25, x_30); -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_2); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_10); -lean_ctor_set(x_32, 1, x_27); -return x_32; -} -else -{ -uint8_t x_33; -x_33 = lean_nat_dec_le(x_30, x_30); -if (x_33 == 0) -{ -lean_object* x_34; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_2); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_10); -lean_ctor_set(x_34, 1, x_27); -return x_34; -} -else -{ -size_t x_35; size_t x_36; lean_object* x_37; -x_35 = 0; -x_36 = lean_usize_of_nat(x_30); -lean_dec(x_30); -x_37 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_29, x_35, x_36, x_10, x_2, x_27); -lean_dec(x_29); -return x_37; -} -} -} -} -case 2: -{ -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_51; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_44 = lean_ctor_get(x_16, 0); -lean_inc(x_44); -lean_dec(x_16); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_45, 2); -lean_inc(x_46); -lean_dec(x_45); -x_47 = l_Lean_Expr_getUsedConstants(x_46); -x_48 = lean_array_get_size(x_47); -x_49 = lean_unsigned_to_nat(0u); -x_50 = lean_nat_dec_lt(x_49, x_48); -if (x_50 == 0) -{ -lean_dec(x_48); -lean_dec(x_47); -x_51 = x_3; -goto block_62; -} -else -{ -uint8_t x_63; -x_63 = lean_nat_dec_le(x_48, x_48); -if (x_63 == 0) -{ -lean_dec(x_48); -lean_dec(x_47); -x_51 = x_3; -goto block_62; -} -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_48); -lean_dec(x_48); -lean_inc(x_2); -x_66 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_47, x_64, x_65, x_10, x_2, x_3); -lean_dec(x_47); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_51 = x_67; -goto block_62; -} -} -block_62: -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_52 = lean_ctor_get(x_44, 1); -lean_inc(x_52); -lean_dec(x_44); -x_53 = l_Lean_Expr_getUsedConstants(x_52); -x_54 = lean_array_get_size(x_53); -x_55 = lean_nat_dec_lt(x_49, x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_54); -lean_dec(x_53); -lean_dec(x_2); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_10); -lean_ctor_set(x_56, 1, x_51); -return x_56; -} -else -{ -uint8_t x_57; -x_57 = lean_nat_dec_le(x_54, x_54); -if (x_57 == 0) -{ -lean_object* x_58; -lean_dec(x_54); -lean_dec(x_53); -lean_dec(x_2); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_10); -lean_ctor_set(x_58, 1, x_51); -return x_58; -} -else -{ -size_t x_59; size_t x_60; lean_object* x_61; -x_59 = 0; -x_60 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_61 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_53, x_59, x_60, x_10, x_2, x_51); -lean_dec(x_53); -return x_61; -} -} -} -} -case 3: -{ -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_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_68 = lean_ctor_get(x_16, 0); -lean_inc(x_68); -lean_dec(x_16); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_69, 2); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l_Lean_Expr_getUsedConstants(x_70); -x_72 = lean_array_get_size(x_71); -x_73 = lean_unsigned_to_nat(0u); -x_74 = lean_nat_dec_lt(x_73, x_72); -if (x_74 == 0) -{ -lean_dec(x_72); -lean_dec(x_71); -x_75 = x_3; -goto block_86; -} -else -{ -uint8_t x_87; -x_87 = lean_nat_dec_le(x_72, x_72); -if (x_87 == 0) -{ -lean_dec(x_72); -lean_dec(x_71); -x_75 = x_3; -goto block_86; -} -else -{ -size_t x_88; size_t x_89; lean_object* x_90; lean_object* x_91; -x_88 = 0; -x_89 = lean_usize_of_nat(x_72); -lean_dec(x_72); -lean_inc(x_2); -x_90 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_71, x_88, x_89, x_10, x_2, x_3); -lean_dec(x_71); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_75 = x_91; -goto block_86; -} -} -block_86: -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_76 = lean_ctor_get(x_68, 1); -lean_inc(x_76); -lean_dec(x_68); -x_77 = l_Lean_Expr_getUsedConstants(x_76); -x_78 = lean_array_get_size(x_77); -x_79 = lean_nat_dec_lt(x_73, x_78); -if (x_79 == 0) -{ -lean_object* x_80; -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_2); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_10); -lean_ctor_set(x_80, 1, x_75); -return x_80; -} -else -{ -uint8_t x_81; -x_81 = lean_nat_dec_le(x_78, x_78); -if (x_81 == 0) -{ -lean_object* x_82; -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_2); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_10); -lean_ctor_set(x_82, 1, x_75); -return x_82; -} -else -{ -size_t x_83; size_t x_84; lean_object* x_85; -x_83 = 0; -x_84 = lean_usize_of_nat(x_78); -lean_dec(x_78); -x_85 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_77, x_83, x_84, x_10, x_2, x_75); -lean_dec(x_77); -return x_85; -} -} -} -} -case 4: -{ -lean_object* x_92; -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_10); -lean_ctor_set(x_92, 1, x_3); -return x_92; -} -case 5: -{ -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_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_93 = lean_ctor_get(x_16, 0); -lean_inc(x_93); -lean_dec(x_16); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_94, 2); -lean_inc(x_95); -lean_dec(x_94); -x_96 = l_Lean_Expr_getUsedConstants(x_95); -x_97 = lean_array_get_size(x_96); -x_98 = lean_unsigned_to_nat(0u); -x_99 = lean_nat_dec_lt(x_98, x_97); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; -lean_dec(x_97); -lean_dec(x_96); -x_100 = lean_ctor_get(x_93, 4); -lean_inc(x_100); -lean_dec(x_93); -x_101 = l_List_forM___at_Lean_CollectAxioms_collect___spec__2(x_100, x_2, x_3); -return x_101; -} -else -{ -uint8_t x_102; -x_102 = lean_nat_dec_le(x_97, x_97); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; -lean_dec(x_97); -lean_dec(x_96); -x_103 = lean_ctor_get(x_93, 4); -lean_inc(x_103); -lean_dec(x_93); -x_104 = l_List_forM___at_Lean_CollectAxioms_collect___spec__2(x_103, x_2, x_3); -return x_104; -} -else -{ -size_t x_105; size_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_105 = 0; -x_106 = lean_usize_of_nat(x_97); -lean_dec(x_97); -lean_inc(x_2); -x_107 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_96, x_105, x_106, x_10, x_2, x_3); -lean_dec(x_96); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = lean_ctor_get(x_93, 4); -lean_inc(x_109); -lean_dec(x_93); -x_110 = l_List_forM___at_Lean_CollectAxioms_collect___spec__2(x_109, x_2, x_108); -return x_110; -} -} -} -default: -{ -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_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_111 = lean_ctor_get(x_16, 0); -lean_inc(x_111); -lean_dec(x_16); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -lean_dec(x_111); -x_113 = lean_ctor_get(x_112, 2); -lean_inc(x_113); -lean_dec(x_112); -x_114 = l_Lean_Expr_getUsedConstants(x_113); -x_115 = lean_array_get_size(x_114); -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_dec(x_115); -lean_dec(x_114); -lean_dec(x_2); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_10); -lean_ctor_set(x_118, 1, x_3); -return x_118; -} -else -{ -uint8_t x_119; -x_119 = lean_nat_dec_le(x_115, x_115); -if (x_119 == 0) -{ -lean_object* x_120; -lean_dec(x_115); -lean_dec(x_114); -lean_dec(x_2); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_10); -lean_ctor_set(x_120, 1, x_3); -return x_120; -} -else -{ -size_t x_121; size_t x_122; lean_object* x_123; -x_121 = 0; -x_122 = lean_usize_of_nat(x_115); -lean_dec(x_115); -x_123 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_114, x_121, x_122, x_10, x_2, x_3); -lean_dec(x_114); -return x_123; -} -} -} +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } 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_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_dec(x_3); -x_124 = lean_box(0); +x_26 = lean_box(0); lean_inc(x_1); -x_125 = l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_1, x_124); -lean_inc(x_5); -lean_inc(x_125); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_5); -x_127 = lean_ctor_get(x_2, 2); -lean_inc(x_127); -x_128 = lean_task_get_own(x_127); +x_27 = l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_1, 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_5); +x_29 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__1; +x_30 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2; +x_31 = 0; lean_inc(x_1); -x_129 = lean_environment_find(x_128, x_1); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; -lean_dec(x_125); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_124); -lean_ctor_set(x_130, 1, x_126); -return x_130; -} -else -{ -lean_object* x_131; -x_131 = lean_ctor_get(x_129, 0); -lean_inc(x_131); -lean_dec(x_129); -switch (lean_obj_tag(x_131)) { -case 0: -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_131); -lean_dec(x_126); -lean_dec(x_2); -x_132 = lean_array_push(x_5, x_1); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_125); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_124); -lean_ctor_set(x_134, 1, x_133); -return x_134; -} -case 1: -{ -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_dec(x_125); -lean_dec(x_5); -lean_dec(x_1); -x_135 = lean_ctor_get(x_131, 0); -lean_inc(x_135); -lean_dec(x_131); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_136, 2); -lean_inc(x_137); -lean_dec(x_136); -x_138 = l_Lean_Expr_getUsedConstants(x_137); -x_139 = lean_array_get_size(x_138); -x_140 = lean_unsigned_to_nat(0u); -x_141 = lean_nat_dec_lt(x_140, x_139); -if (x_141 == 0) -{ -lean_dec(x_139); -lean_dec(x_138); -x_142 = x_126; -goto block_153; -} -else -{ -uint8_t x_154; -x_154 = lean_nat_dec_le(x_139, x_139); -if (x_154 == 0) -{ -lean_dec(x_139); -lean_dec(x_138); -x_142 = x_126; -goto block_153; -} -else -{ -size_t x_155; size_t x_156; lean_object* x_157; lean_object* x_158; -x_155 = 0; -x_156 = lean_usize_of_nat(x_139); -lean_dec(x_139); lean_inc(x_2); -x_157 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_138, x_155, x_156, x_124, x_2, x_126); -lean_dec(x_138); -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); -lean_dec(x_157); -x_142 = x_158; -goto block_153; -} -} -block_153: +x_32 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_29, x_30, x_2, x_1, x_31); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_143 = lean_ctor_get(x_135, 1); -lean_inc(x_143); -lean_dec(x_135); -x_144 = l_Lean_Expr_getUsedConstants(x_143); -x_145 = lean_array_get_size(x_144); -x_146 = lean_nat_dec_lt(x_140, x_145); -if (x_146 == 0) -{ -lean_object* x_147; -lean_dec(x_145); -lean_dec(x_144); -lean_dec(x_2); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_124); -lean_ctor_set(x_147, 1, x_142); -return x_147; -} -else -{ -uint8_t x_148; -x_148 = lean_nat_dec_le(x_145, x_145); -if (x_148 == 0) -{ -lean_object* x_149; -lean_dec(x_145); -lean_dec(x_144); -lean_dec(x_2); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_124); -lean_ctor_set(x_149, 1, x_142); -return x_149; -} -else -{ -size_t x_150; size_t x_151; lean_object* x_152; -x_150 = 0; -x_151 = lean_usize_of_nat(x_145); -lean_dec(x_145); -x_152 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_144, x_150, x_151, x_124, x_2, x_142); -lean_dec(x_144); -return x_152; -} -} -} -} -case 2: -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; -lean_dec(x_125); -lean_dec(x_5); -lean_dec(x_1); -x_159 = lean_ctor_get(x_131, 0); -lean_inc(x_159); -lean_dec(x_131); -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_160, 2); -lean_inc(x_161); -lean_dec(x_160); -x_162 = l_Lean_Expr_getUsedConstants(x_161); -x_163 = lean_array_get_size(x_162); -x_164 = lean_unsigned_to_nat(0u); -x_165 = lean_nat_dec_lt(x_164, x_163); -if (x_165 == 0) -{ -lean_dec(x_163); -lean_dec(x_162); -x_166 = x_126; -goto block_177; -} -else -{ -uint8_t x_178; -x_178 = lean_nat_dec_le(x_163, x_163); -if (x_178 == 0) -{ -lean_dec(x_163); -lean_dec(x_162); -x_166 = x_126; -goto block_177; -} -else -{ -size_t x_179; size_t x_180; lean_object* x_181; lean_object* x_182; -x_179 = 0; -x_180 = lean_usize_of_nat(x_163); -lean_dec(x_163); +lean_object* x_33; lean_inc(x_2); -x_181 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_162, x_179, x_180, x_124, x_2, x_126); -lean_dec(x_162); -x_182 = lean_ctor_get(x_181, 1); -lean_inc(x_182); -lean_dec(x_181); -x_166 = x_182; -goto block_177; -} -} -block_177: -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; -x_167 = lean_ctor_get(x_159, 1); -lean_inc(x_167); -lean_dec(x_159); -x_168 = l_Lean_Expr_getUsedConstants(x_167); -x_169 = lean_array_get_size(x_168); -x_170 = lean_nat_dec_lt(x_164, x_169); -if (x_170 == 0) -{ -lean_object* x_171; -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_2); -x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_124); -lean_ctor_set(x_171, 1, x_166); -return x_171; +x_33 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___lambda__1(x_2, x_1, x_26, x_2, x_28); +return x_33; } else { -uint8_t x_172; -x_172 = lean_nat_dec_le(x_169, x_169); -if (x_172 == 0) -{ -lean_object* x_173; -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_2); -x_173 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_173, 0, x_124); -lean_ctor_set(x_173, 1, x_166); -return x_173; -} -else -{ -size_t x_174; size_t x_175; lean_object* x_176; -x_174 = 0; -x_175 = lean_usize_of_nat(x_169); -lean_dec(x_169); -x_176 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_168, x_174, x_175, x_124, x_2, x_166); -lean_dec(x_168); -return x_176; -} -} -} -} -case 3: -{ -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; -lean_dec(x_125); -lean_dec(x_5); -lean_dec(x_1); -x_183 = lean_ctor_get(x_131, 0); -lean_inc(x_183); -lean_dec(x_131); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_184, 2); -lean_inc(x_185); -lean_dec(x_184); -x_186 = l_Lean_Expr_getUsedConstants(x_185); -x_187 = lean_array_get_size(x_186); -x_188 = lean_unsigned_to_nat(0u); -x_189 = lean_nat_dec_lt(x_188, x_187); -if (x_189 == 0) -{ -lean_dec(x_187); -lean_dec(x_186); -x_190 = x_126; -goto block_201; -} -else -{ -uint8_t x_202; -x_202 = lean_nat_dec_le(x_187, x_187); -if (x_202 == 0) -{ -lean_dec(x_187); -lean_dec(x_186); -x_190 = x_126; -goto block_201; -} -else -{ -size_t x_203; size_t x_204; lean_object* x_205; lean_object* x_206; -x_203 = 0; -x_204 = lean_usize_of_nat(x_187); -lean_dec(x_187); -lean_inc(x_2); -x_205 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_186, x_203, x_204, x_124, x_2, x_126); -lean_dec(x_186); -x_206 = lean_ctor_get(x_205, 1); -lean_inc(x_206); -lean_dec(x_205); -x_190 = x_206; -goto block_201; -} -} -block_201: -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_191 = lean_ctor_get(x_183, 1); -lean_inc(x_191); -lean_dec(x_183); -x_192 = l_Lean_Expr_getUsedConstants(x_191); -x_193 = lean_array_get_size(x_192); -x_194 = lean_nat_dec_lt(x_188, x_193); -if (x_194 == 0) -{ -lean_object* x_195; -lean_dec(x_193); -lean_dec(x_192); -lean_dec(x_2); -x_195 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_195, 0, x_124); -lean_ctor_set(x_195, 1, x_190); -return x_195; -} -else -{ -uint8_t x_196; -x_196 = lean_nat_dec_le(x_193, x_193); -if (x_196 == 0) -{ -lean_object* x_197; -lean_dec(x_193); -lean_dec(x_192); -lean_dec(x_2); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_124); -lean_ctor_set(x_197, 1, x_190); -return x_197; -} -else -{ -size_t x_198; size_t x_199; lean_object* x_200; -x_198 = 0; -x_199 = lean_usize_of_nat(x_193); -lean_dec(x_193); -x_200 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_192, x_198, x_199, x_124, x_2, x_190); -lean_dec(x_192); -return x_200; -} -} -} -} -case 4: -{ -lean_object* x_207; -lean_dec(x_131); -lean_dec(x_125); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_124); -lean_ctor_set(x_207, 1, x_126); -return x_207; -} -case 5: -{ -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_125); -lean_dec(x_5); -lean_dec(x_1); -x_208 = lean_ctor_get(x_131, 0); -lean_inc(x_208); -lean_dec(x_131); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_209, 2); -lean_inc(x_210); -lean_dec(x_209); -x_211 = l_Lean_Expr_getUsedConstants(x_210); -x_212 = lean_array_get_size(x_211); -x_213 = lean_unsigned_to_nat(0u); -x_214 = lean_nat_dec_lt(x_213, x_212); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; -lean_dec(x_212); -lean_dec(x_211); -x_215 = lean_ctor_get(x_208, 4); -lean_inc(x_215); -lean_dec(x_208); -x_216 = l_List_forM___at_Lean_CollectAxioms_collect___spec__2(x_215, x_2, x_126); -return x_216; -} -else -{ -uint8_t x_217; -x_217 = lean_nat_dec_le(x_212, x_212); -if (x_217 == 0) -{ -lean_object* x_218; lean_object* x_219; -lean_dec(x_212); -lean_dec(x_211); -x_218 = lean_ctor_get(x_208, 4); -lean_inc(x_218); -lean_dec(x_208); -x_219 = l_List_forM___at_Lean_CollectAxioms_collect___spec__2(x_218, x_2, x_126); -return x_219; -} -else -{ -size_t x_220; size_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_220 = 0; -x_221 = lean_usize_of_nat(x_212); -lean_dec(x_212); -lean_inc(x_2); -x_222 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_211, x_220, x_221, x_124, x_2, x_126); -lean_dec(x_211); -x_223 = lean_ctor_get(x_222, 1); -lean_inc(x_223); -lean_dec(x_222); -x_224 = lean_ctor_get(x_208, 4); -lean_inc(x_224); -lean_dec(x_208); -x_225 = l_List_forM___at_Lean_CollectAxioms_collect___spec__2(x_224, x_2, x_223); -return x_225; -} -} -} -default: -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; -lean_dec(x_125); -lean_dec(x_5); -lean_dec(x_1); -x_226 = lean_ctor_get(x_131, 0); -lean_inc(x_226); -lean_dec(x_131); -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -lean_dec(x_226); -x_228 = lean_ctor_get(x_227, 2); -lean_inc(x_228); -lean_dec(x_227); -x_229 = l_Lean_Expr_getUsedConstants(x_228); -x_230 = lean_array_get_size(x_229); -x_231 = lean_unsigned_to_nat(0u); -x_232 = lean_nat_dec_lt(x_231, x_230); -if (x_232 == 0) -{ -lean_object* x_233; -lean_dec(x_230); -lean_dec(x_229); -lean_dec(x_2); -x_233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_233, 0, x_124); -lean_ctor_set(x_233, 1, x_126); -return x_233; -} -else -{ -uint8_t x_234; -x_234 = lean_nat_dec_le(x_230, x_230); -if (x_234 == 0) -{ -lean_object* x_235; -lean_dec(x_230); -lean_dec(x_229); -lean_dec(x_2); -x_235 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_235, 0, x_124); -lean_ctor_set(x_235, 1, x_126); -return x_235; -} -else -{ -size_t x_236; size_t x_237; lean_object* x_238; -x_236 = 0; -x_237 = lean_usize_of_nat(x_230); -lean_dec(x_230); -x_238 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_229, x_236, x_237, x_124, x_2, x_126); -lean_dec(x_229); -return x_238; -} -} +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; lean_object* x_41; +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_box(0); +x_36 = lean_array_size(x_34); +x_37 = 0; +x_38 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__3(x_1, x_34, x_35, x_34, x_36, x_37, x_26, x_2, x_28); +lean_dec(x_34); +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_26); +lean_ctor_set(x_41, 1, x_39); +return x_41; } } } else { -lean_object* x_239; lean_object* x_240; +lean_object* x_42; lean_object* x_43; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_239 = lean_box(0); -x_240 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_3); -return x_240; +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_3); +return x_43; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -1118,26 +1094,41 @@ x_7 = lean_unbox_usize(x_2); lean_dec(x_2); x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_9 = l_Array_foldlMUnsafe_fold___at_Lean_CollectAxioms_collect___spec__1(x_1, x_7, x_8, x_4, x_5, x_6); +x_9 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__1(x_1, x_7, x_8, x_4, x_5, x_6); lean_dec(x_1); return x_9; } } +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___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) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_11 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___spec__3(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} static lean_object* _init_l_Lean_collectAxioms___rarg___lambda__1___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_array_mk(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_collectAxioms___rarg___lambda__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_NameSet_empty; -x_2 = l_Lean_collectAxioms___rarg___lambda__1___closed__1; +x_2 = l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___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); @@ -1148,8 +1139,8 @@ LEAN_EXPORT lean_object* l_Lean_collectAxioms___rarg___lambda__1(lean_object* x_ _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = l_Lean_collectAxioms___rarg___lambda__1___closed__2; -x_5 = l_Lean_CollectAxioms_collect(x_1, x_3, x_4); +x_4 = l_Lean_collectAxioms___rarg___lambda__1___closed__1; +x_5 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_3, x_4); x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); @@ -1190,23 +1181,348 @@ x_2 = lean_alloc_closure((void*)(l_Lean_collectAxioms___rarg), 3, 0); return x_2; } } -lean_object* initialize_Lean_MonadEnv(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Util_FoldConsts(uint8_t builtin, lean_object*); +LEAN_EXPORT lean_object* l_Lean_collectAxioms___at_Lean_registerAxiomsForDecl___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_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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_collectAxioms___rarg___lambda__1___closed__1; +x_10 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_8, x_9); +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); +lean_ctor_set(x_5, 0, x_12); +return x_5; +} +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; +x_13 = lean_ctor_get(x_5, 0); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_5); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_collectAxioms___rarg___lambda__1___closed__1; +x_17 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect(x_1, x_15, x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(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_14); +return x_20; +} +} +} +static lean_object* _init_l_Lean_registerAxiomsForDecl___closed__1() { +_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_registerAxiomsForDecl___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_registerAxiomsForDecl___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_registerAxiomsForDecl___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_registerAxiomsForDecl___closed__2; +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_registerAxiomsForDecl(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; uint8_t x_9; +lean_inc(x_1); +x_5 = l_Lean_collectAxioms___at_Lean_registerAxiomsForDecl___spec__1(x_1, x_2, 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_st_ref_take(x_3, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_8, 0); +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; lean_object* x_18; uint8_t x_19; +x_12 = lean_ctor_get(x_8, 1); +x_13 = lean_ctor_get(x_10, 0); +x_14 = lean_ctor_get(x_10, 4); +lean_dec(x_14); +lean_ctor_set(x_8, 1, x_6); +lean_ctor_set(x_8, 0, x_1); +x_15 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2; +x_16 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_15, x_13, x_8); +x_17 = l_Lean_registerAxiomsForDecl___closed__3; +lean_ctor_set(x_10, 4, x_17); +lean_ctor_set(x_10, 0, x_16); +x_18 = lean_st_ref_set(x_3, x_10, x_12); +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; 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_25 = lean_ctor_get(x_8, 1); +x_26 = lean_ctor_get(x_10, 0); +x_27 = lean_ctor_get(x_10, 1); +x_28 = lean_ctor_get(x_10, 2); +x_29 = lean_ctor_get(x_10, 3); +x_30 = lean_ctor_get(x_10, 5); +x_31 = lean_ctor_get(x_10, 6); +x_32 = lean_ctor_get(x_10, 7); +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_inc(x_26); +lean_dec(x_10); +lean_ctor_set(x_8, 1, x_6); +lean_ctor_set(x_8, 0, x_1); +x_33 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2; +x_34 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_33, x_26, x_8); +x_35 = l_Lean_registerAxiomsForDecl___closed__3; +x_36 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_27); +lean_ctor_set(x_36, 2, x_28); +lean_ctor_set(x_36, 3, x_29); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_30); +lean_ctor_set(x_36, 6, x_31); +lean_ctor_set(x_36, 7, x_32); +x_37 = lean_st_ref_set(x_3, x_36, x_25); +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; +} +} +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_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_42 = lean_ctor_get(x_8, 0); +x_43 = lean_ctor_get(x_8, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_8); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +x_46 = lean_ctor_get(x_42, 2); +lean_inc(x_46); +x_47 = lean_ctor_get(x_42, 3); +lean_inc(x_47); +x_48 = lean_ctor_get(x_42, 5); +lean_inc(x_48); +x_49 = lean_ctor_get(x_42, 6); +lean_inc(x_49); +x_50 = lean_ctor_get(x_42, 7); +lean_inc(x_50); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + lean_ctor_release(x_42, 4); + lean_ctor_release(x_42, 5); + lean_ctor_release(x_42, 6); + lean_ctor_release(x_42, 7); + x_51 = x_42; +} else { + lean_dec_ref(x_42); + x_51 = lean_box(0); +} +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_1); +lean_ctor_set(x_52, 1, x_6); +x_53 = l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2; +x_54 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_53, x_44, x_52); +x_55 = l_Lean_registerAxiomsForDecl___closed__3; +if (lean_is_scalar(x_51)) { + x_56 = lean_alloc_ctor(0, 8, 0); +} else { + x_56 = x_51; +} +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_45); +lean_ctor_set(x_56, 2, x_46); +lean_ctor_set(x_56, 3, x_47); +lean_ctor_set(x_56, 4, x_55); +lean_ctor_set(x_56, 5, x_48); +lean_ctor_set(x_56, 6, x_49); +lean_ctor_set(x_56, 7, x_50); +x_57 = lean_st_ref_set(x_3, x_56, x_43); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + 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); +return x_61; +} +} +} +LEAN_EXPORT lean_object* l_Lean_collectAxioms___at_Lean_registerAxiomsForDecl___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_Lean_collectAxioms___at_Lean_registerAxiomsForDecl___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_registerAxiomsForDecl___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_registerAxiomsForDecl(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* initialize_Lean_CoreM(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Util_CollectAxioms(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_MonadEnv(builtin, lean_io_mk_world()); +res = initialize_Lean_CoreM(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Util_FoldConsts(builtin, lean_io_mk_world()); +l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___closed__1 = _init_l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___closed__1(); +lean_mark_persistent(l_Lean_RBMap_toArray___at_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____spec__1___closed__1); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__1 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__1); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__2 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__2); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__3 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__3); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__4 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__4); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__5 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__5); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__6 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__6); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__7 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__7(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__7); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__8 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__8(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__8); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__9 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__9(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__9); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__10 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__10(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__10); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__11 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__11(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__11); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__12 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__12(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__12); +l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__13 = _init_l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__13(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3____closed__13); +if (builtin) {res = l_Lean_initFn____x40_Lean_Util_CollectAxioms___hyg_3_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; +l___private_Lean_Util_CollectAxioms_0__Lean_exportedAxiomsExt = lean_io_result_get_value(res); +lean_mark_persistent(l___private_Lean_Util_CollectAxioms_0__Lean_exportedAxiomsExt); lean_dec_ref(res); +}l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__1 = _init_l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__1(); +lean_mark_persistent(l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__1); +l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2 = _init_l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2(); +lean_mark_persistent(l___private_Lean_Util_CollectAxioms_0__Lean_CollectAxioms_collect___closed__2); l_Lean_collectAxioms___rarg___lambda__1___closed__1 = _init_l_Lean_collectAxioms___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_collectAxioms___rarg___lambda__1___closed__1); -l_Lean_collectAxioms___rarg___lambda__1___closed__2 = _init_l_Lean_collectAxioms___rarg___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_collectAxioms___rarg___lambda__1___closed__2); +l_Lean_registerAxiomsForDecl___closed__1 = _init_l_Lean_registerAxiomsForDecl___closed__1(); +lean_mark_persistent(l_Lean_registerAxiomsForDecl___closed__1); +l_Lean_registerAxiomsForDecl___closed__2 = _init_l_Lean_registerAxiomsForDecl___closed__2(); +lean_mark_persistent(l_Lean_registerAxiomsForDecl___closed__2); +l_Lean_registerAxiomsForDecl___closed__3 = _init_l_Lean_registerAxiomsForDecl___closed__3(); +lean_mark_persistent(l_Lean_registerAxiomsForDecl___closed__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Std/Internal/Async/TCP.c b/stage0/stdlib/Std/Internal/Async/TCP.c index 0e4f35a1d3..2d1b105e9e 100644 --- a/stage0/stdlib/Std/Internal/Async/TCP.c +++ b/stage0/stdlib/Std/Internal/Async/TCP.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Std.Internal.Async.TCP -// Imports: Std.Time Std.Internal.UV Std.Internal.Async.Basic Std.Net.Addr +// Imports: Std.Time Std.Internal.UV.TCP Std.Internal.Async.Select Std.Net.Addr #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -17,12 +17,16 @@ LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_getSockName(l static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__22; static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__3; static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__26; +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_uv_tcp_bind(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_mk(lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_getsockname(lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_AsyncTask_block___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_noDelay___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_getPeerName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_accept___lambda__1(lean_object*); +static lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2; lean_object* lean_uv_tcp_connect(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_noDelay___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_shutdown(lean_object*, lean_object*); @@ -32,18 +36,25 @@ lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__1; LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_keepAlive___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_getpeername(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__2(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recv_x3f___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_accept___closed__1; static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__16; lean_object* lean_uv_tcp_send(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_listen(lean_object*, uint32_t, lean_object*); +lean_object* l_IO_Promise_isResolved___rarg(lean_object*, lean_object*); lean_object* lean_uv_tcp_nodelay(lean_object*, lean_object*); lean_object* lean_uv_tcp_new(lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_connect___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__27; +lean_object* lean_io_promise_resolve(lean_object*, lean_object*, lean_object*); +lean_object* lean_io_promise_result_opt(lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__5; +lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_mk(lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__14; +LEAN_EXPORT lean_object* l_IO_ofExcept___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__1(lean_object*, lean_object*); uint32_t lean_uint32_of_nat(lean_object*); lean_object* lean_uv_tcp_listen(lean_object*, uint32_t, lean_object*); uint8_t lean_bool_to_int8(uint8_t); @@ -58,22 +69,29 @@ static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__ static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__8; static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__9; static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__2; +lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); +lean_object* lean_uv_tcp_wait_readable(lean_object*, lean_object*); +lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_bind___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__4; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* lean_uv_tcp_accept(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_getSockName___boxed(lean_object*, lean_object*); +static lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_bind(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134_; LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_bind___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_bind(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_keepAlive___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__25; +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector(lean_object*, uint64_t, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__12; lean_object* lean_uv_tcp_keepalive(lean_object*, uint8_t, uint32_t, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__7; LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_accept___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_recv(lean_object*, uint64_t, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__19; lean_object* l_Int_toNat(lean_object*); @@ -81,20 +99,29 @@ LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_noDelay(lean_ lean_object* l_IO_Promise_result_x21___rarg(lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_shutdown___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2(lean_object*, uint64_t, uint8_t, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__10; LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_keepAlive(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_getSockName___boxed(lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__6; +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Internal_UV_TCP_Socket_cancelRecv___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_accept(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___auto____x40_Std_Internal_Async_TCP___hyg_536_; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_noDelay(lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__11; -LEAN_EXPORT lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_269_; +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__13; lean_object* lean_uv_tcp_shutdown(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_send___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__20; LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_keepAlive(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_getPeerName___boxed(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_connect(lean_object*, lean_object*, lean_object*); @@ -938,6 +965,754 @@ lean_dec(x_1); return x_5; } } +LEAN_EXPORT lean_object* l_IO_ofExcept___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_io_error_to_string(x_4); +lean_ctor_set_tag(x_1, 18); +lean_ctor_set(x_1, 0, x_5); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_io_error_to_string(x_7); +x_9 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_2); +return x_10; +} +} +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__2(uint64_t 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_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_51 = lean_ctor_get(x_4, 0); +x_52 = lean_st_ref_take(x_51, x_6); +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; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = 1; +x_57 = lean_box(x_56); +x_58 = lean_st_ref_set(x_51, x_57, x_55); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_7 = x_56; +x_8 = x_59; +goto block_50; +} +else +{ +lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_60 = lean_ctor_get(x_52, 1); +lean_inc(x_60); +lean_dec(x_52); +x_61 = 1; +x_62 = lean_box(x_61); +x_63 = lean_st_ref_set(x_51, x_62, x_60); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = 0; +x_7 = x_65; +x_8 = x_64; +goto block_50; +} +block_50: +{ +if (x_7 == 0) +{ +lean_object* x_9; +lean_dec(x_3); +x_9 = lean_apply_1(x_5, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_10 = lean_ctor_get(x_4, 1); +x_11 = l_IO_ofExcept___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__1(x_3, x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_uv_tcp_recv(x_2, x_1, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_IO_Promise_result_x21___rarg(x_14); +lean_dec(x_14); +x_17 = l_Std_Internal_IO_Async_AsyncTask_block___rarg(x_16, x_15); +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; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_18); +x_21 = lean_io_promise_resolve(x_20, x_10, x_19); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +return x_21; +} +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_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; +} +} +else +{ +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_17, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_26); +x_29 = lean_io_promise_resolve(x_28, x_10, x_27); +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 +{ +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_13, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_13, 1); +lean_inc(x_35); +lean_dec(x_13); +x_36 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_36, 0, x_34); +x_37 = lean_io_promise_resolve(x_36, x_10, x_35); +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); +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 +{ +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_11, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_11, 1); +lean_inc(x_43); +lean_dec(x_11); +x_44 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_44, 0, x_42); +x_45 = lean_io_promise_resolve(x_44, x_10, x_43); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +return x_45; +} +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_inc(x_48); +lean_inc(x_47); +lean_dec(x_45); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_IO_Promise_isResolved___rarg(x_1, x_2); +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; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2(lean_object* x_1, uint64_t x_2, uint8_t x_3, lean_object* x_4) { +_start: +{ +if (x_3 == 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_4); +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_uv_tcp_recv(x_1, x_2, x_4); +if (lean_obj_tag(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_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_IO_Promise_result_x21___rarg(x_8); +lean_dec(x_8); +x_11 = l_Std_Internal_IO_Async_AsyncTask_block___rarg(x_10, x_9); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_15); +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_11); +if (x_19 == 0) +{ +return x_11; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* 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 = 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; +} +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_7); +if (x_23 == 0) +{ +return x_7; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_7, 0); +x_25 = lean_ctor_get(x_7, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_7); +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; +} +} +} +} +} +static lean_object* _init_l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___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; +} +} +static lean_object* _init_l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3(uint64_t 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 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__1; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 0); +x_10 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2; +x_11 = l_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__2(x_1, x_2, x_9, x_3, x_10, x_5); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 0); +lean_ctor_set(x_4, 0, x_13); +lean_ctor_set(x_11, 0, x_4); +return x_11; +} +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_4, 0, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_4); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_11, 0); +lean_ctor_set_tag(x_4, 0); +lean_ctor_set(x_4, 0, x_18); +lean_ctor_set_tag(x_11, 0); +lean_ctor_set(x_11, 0, x_4); +return x_11; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_11); +lean_ctor_set_tag(x_4, 0); +lean_ctor_set(x_4, 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); +return x_21; +} +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_4, 0); +lean_inc(x_22); +lean_dec(x_4); +x_23 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2; +x_24 = l_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__2(x_1, x_2, x_22, x_3, x_23, x_5); +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; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_27; +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +else +{ +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_24, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_32 = x_24; +} else { + lean_dec_ref(x_24); + x_32 = lean_box(0); +} +x_33 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_33, 0, x_30); +if (lean_is_scalar(x_32)) { + x_34 = lean_alloc_ctor(0, 2, 0); +} else { + x_34 = x_32; + lean_ctor_set_tag(x_34, 0); +} +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4(lean_object* x_1, uint64_t 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; uint8_t x_10; lean_object* x_11; uint8_t x_12; +x_6 = lean_io_promise_result_opt(x_1); +x_7 = lean_box_uint64(x_2); +x_8 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___boxed), 5, 3); +lean_closure_set(x_8, 0, x_7); +lean_closure_set(x_8, 1, x_3); +lean_closure_set(x_8, 2, x_4); +x_9 = l_Task_Priority_default; +x_10 = 0; +x_11 = lean_io_map_task(x_8, x_6, x_9, x_10, x_5); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +x_14 = lean_box(0); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector(lean_object* x_1, uint64_t x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_uv_tcp_wait_readable(x_1, x_3); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +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_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1___boxed), 2, 1); +lean_closure_set(x_7, 0, x_6); +x_8 = lean_box_uint64(x_2); +lean_inc(x_1); +x_9 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2___boxed), 4, 2); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_8); +x_10 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); +lean_closure_set(x_10, 0, x_7); +lean_closure_set(x_10, 1, x_9); +x_11 = lean_box_uint64(x_2); +lean_inc(x_1); +x_12 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4___boxed), 5, 3); +lean_closure_set(x_12, 0, x_6); +lean_closure_set(x_12, 1, x_11); +lean_closure_set(x_12, 2, x_1); +x_13 = lean_alloc_closure((void*)(l_Std_Internal_UV_TCP_Socket_cancelRecv___boxed), 2, 1); +lean_closure_set(x_13, 0, x_1); +x_14 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_12); +lean_ctor_set(x_14, 2, x_13); +lean_ctor_set(x_4, 0, x_14); +return x_4; +} +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; +x_15 = lean_ctor_get(x_4, 0); +x_16 = lean_ctor_get(x_4, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_4); +lean_inc(x_15); +x_17 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1___boxed), 2, 1); +lean_closure_set(x_17, 0, x_15); +x_18 = lean_box_uint64(x_2); +lean_inc(x_1); +x_19 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2___boxed), 4, 2); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, 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); +x_21 = lean_box_uint64(x_2); +lean_inc(x_1); +x_22 = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4___boxed), 5, 3); +lean_closure_set(x_22, 0, x_15); +lean_closure_set(x_22, 1, x_21); +lean_closure_set(x_22, 2, x_1); +x_23 = lean_alloc_closure((void*)(l_Std_Internal_UV_TCP_Socket_cancelRecv___boxed), 2, 1); +lean_closure_set(x_23, 0, x_1); +x_24 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_22); +lean_ctor_set(x_24, 2, 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_16); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_4); +if (x_26 == 0) +{ +return x_4; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +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_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___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: +{ +uint64_t x_7; lean_object* x_8; +x_7 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_8 = l_Std_Internal_IO_Async_Waiter_race___at_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___spec__2(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__1(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint64_t x_5; uint8_t x_6; lean_object* x_7; +x_5 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_6 = lean_unbox(x_3); +lean_dec(x_3); +x_7 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__2(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint64_t x_6; lean_object* x_7; +x_6 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_7 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint64_t x_6; lean_object* x_7; +x_6 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_7 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__4(x_1, x_6, x_3, x_4, x_5); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint64_t x_4; lean_object* x_5; +x_4 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_5 = l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector(x_1, x_4, x_3); +return x_5; +} +} LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_shutdown(lean_object* x_1, lean_object* x_2) { _start: { @@ -1056,7 +1831,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l___auto____x40_Std_Internal_Async_TCP___hyg_269_() { +static lean_object* _init_l___auto____x40_Std_Internal_Async_TCP___hyg_536_() { _start: { lean_object* x_1; @@ -1089,8 +1864,8 @@ return x_7; } } lean_object* initialize_Std_Time(uint8_t builtin, lean_object*); -lean_object* initialize_Std_Internal_UV(uint8_t builtin, lean_object*); -lean_object* initialize_Std_Internal_Async_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Std_Internal_UV_TCP(uint8_t builtin, lean_object*); +lean_object* initialize_Std_Internal_Async_Select(uint8_t builtin, lean_object*); lean_object* initialize_Std_Net_Addr(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Std_Internal_Async_TCP(uint8_t builtin, lean_object* w) { @@ -1100,10 +1875,10 @@ _G_initialized = true; res = initialize_Std_Time(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Std_Internal_UV(builtin, lean_io_mk_world()); +res = initialize_Std_Internal_UV_TCP(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Std_Internal_Async_Basic(builtin, lean_io_mk_world()); +res = initialize_Std_Internal_Async_Select(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); res = initialize_Std_Net_Addr(builtin, lean_io_mk_world()); @@ -1167,8 +1942,12 @@ l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__27 = _init_l___auto_ lean_mark_persistent(l___auto____x40_Std_Internal_Async_TCP___hyg_134____closed__27); l___auto____x40_Std_Internal_Async_TCP___hyg_134_ = _init_l___auto____x40_Std_Internal_Async_TCP___hyg_134_(); lean_mark_persistent(l___auto____x40_Std_Internal_Async_TCP___hyg_134_); -l___auto____x40_Std_Internal_Async_TCP___hyg_269_ = _init_l___auto____x40_Std_Internal_Async_TCP___hyg_269_(); -lean_mark_persistent(l___auto____x40_Std_Internal_Async_TCP___hyg_269_); +l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__1 = _init_l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__1(); +lean_mark_persistent(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__1); +l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2 = _init_l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2(); +lean_mark_persistent(l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___lambda__3___closed__2); +l___auto____x40_Std_Internal_Async_TCP___hyg_536_ = _init_l___auto____x40_Std_Internal_Async_TCP___hyg_536_(); +lean_mark_persistent(l___auto____x40_Std_Internal_Async_TCP___hyg_536_); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Std/Internal/UV/TCP.c b/stage0/stdlib/Std/Internal/UV/TCP.c index 78ccfe261f..2c8bdf75ff 100644 --- a/stage0/stdlib/Std/Internal/UV/TCP.c +++ b/stage0/stdlib/Std/Internal/UV/TCP.c @@ -16,6 +16,7 @@ extern "C" { LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_keepAlive___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_bind(lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_getsockname(lean_object*, lean_object*); +lean_object* lean_uv_tcp_cancel_recv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_UV_TCP_0__Std_Internal_UV_TCP_SocketImpl; lean_object* lean_uv_tcp_connect(lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_getpeername(lean_object*, lean_object*); @@ -27,15 +28,18 @@ lean_object* lean_uv_tcp_new(lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_getPeerName___boxed(lean_object*, lean_object*); lean_object* lean_uv_tcp_listen(lean_object*, uint32_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_new___boxed(lean_object*); +lean_object* lean_uv_tcp_wait_readable(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_bind___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_accept(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_listen___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_uv_tcp_keepalive(lean_object*, uint8_t, uint32_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_waitReadable___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_getSockName___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_accept___boxed(lean_object*, lean_object*); lean_object* lean_uv_tcp_recv(lean_object*, uint64_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_send___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_noDelay___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_cancelRecv___boxed(lean_object*, lean_object*); lean_object* lean_uv_tcp_shutdown(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_shutdown___boxed(lean_object*, lean_object*); static lean_object* _init_l___private_Std_Internal_UV_TCP_0__Std_Internal_UV_TCP_SocketImpl() { @@ -82,6 +86,24 @@ lean_dec(x_1); return x_5; } } +LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_waitReadable___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_uv_tcp_wait_readable(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_cancelRecv___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_uv_tcp_cancel_recv(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Std_Internal_UV_TCP_Socket_bind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: {